:root {
    --primary-blue: #004a99;
    --navy-blue: #002d5b;
    --primary-header: #ffffff;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-navy {
    background-color: var(--navy-blue);
    color: white;
}

.text-primary-custom {
    color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    border: none;
}

.btn-primary:hover {
    background-color: #00356e;
}

/* Hero Styling */
.hero-section {
    background-size: cover;
    padding: 60px 0;
    border-bottom: 1px solid #e1e8ed;
}

.hero-section {
    background: #f0f4f8 url('../img/bkg-home2.jpg') repeat-y -475px -300px;
}

/* --- Variante para Tablets y Desktop (Min-width: 992px) --- */
@media (min-width: 992px) {
    .hero-section {
        background: #f0f4f8 url('../img/bkg-home2.jpg') repeat-y left -300px;
        min-height: 70vh;
    }
}

.hero-section h1 {
    color: var(--primary-header);
    text-shadow: #000000 0px 0px 3px;
}

.hero-section h2 {
    color: var(--primary-header);
    text-shadow: #000000 0px 0px 3px;
    font-size: 2.5em;
    text-align: center;
}

.hero-section p {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px 15px;
    border-radius: 5px;
    color: #000000 !important;
}

.adsbymoney-container, .data-container {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.adsbymoney-container {
    padding: 10px;
}

.data-container p {
    background-color: transparent;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Partner Logos */
.partner-logo {
    max-width: 160px;
    filter: invert(50%);
    transition: 0.3s;
}

.partner-logo:hover {
    filter: invert(100%);
}

/* Steps */
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Form Specifics */
.btn-outline-secondary {
    border-color: #ced4da;
    color: #495057;
}

.form-label {
    margin-bottom: 0.25rem;
}

.input-error {
    border: 2px solid #dc3545 !important;
}

/* Estilo para el mensaje de texto debajo del campo */
.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.loading{
  width:100px; 
  padding: 10em 0;
}

.contact{
    margin-bottom: 400px;
}

.list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    display: grid;
    gap: 10px 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  @media (min-width: 1024px) {
    .list {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  .list li {
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    break-inside: avoid;
  }

/* ========================================
   MULTI-STEP FORM STYLES
======================================== */

/* Progress Bar Container */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    transition: width 0.4s ease;
}

/* Step Visibility */
.step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Styling */
.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.btn.input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    color: #dc3545 !important;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Medical Checkboxes Styling */
.medical-checkbox {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.medical-checkbox:hover {
    background-color: #e9ecef;
    border-color: #0d6efd;
}

.medical-checkbox input[type="checkbox"]:checked ~ label {
    color: #0d6efd;
    font-weight: 600;
}

.medical-checkbox .form-check-input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.medical-checkbox .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
}

/* Button Hover States */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Navigation Buttons */
#prevBtn {
    min-width: 120px;
}

#nextBtn, #submitBtn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .medical-checkbox {
        padding: 0.5rem;
    }
    
    .medical-checkbox .form-check-label {
        font-size: 0.85rem;
    }
}

/* Smooth transition for error states */
.form-control,
.form-select,
.btn {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Ensure checked buttons have proper styling */
.btn-check:checked + .btn-outline-secondary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

.btn-check:checked + .btn-outline-secondary.input-error {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}