/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #334e68;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #268d7c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Modal Animation */
#leadModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#leadModal.invisible {
    opacity: 0;
    pointer-events: none;
}

#leadModal:not(.invisible) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transition: transform 0.3s ease;
    transform: translateY(-20px) scale(0.95);
}

#leadModal:not(.invisible) .modal-content {
    transform: translateY(0) scale(1);
}

/* Professional Form Redesign */
#applicationForm input[type="text"]:not([readonly]),
#applicationForm input[type="email"],
#applicationForm input[type="tel"],
#applicationForm input[type="number"],
#applicationForm select,
#applicationForm textarea {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    width: 100%;
}

#applicationForm input[type="text"]:not([readonly]):focus,
#applicationForm input[type="email"]:focus,
#applicationForm input[type="tel"]:focus,
#applicationForm input[type="number"]:focus,
#applicationForm select:focus,
#applicationForm textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #268d7c;
    box-shadow: 0 0 0 4px rgba(38, 141, 124, 0.15);
}

#applicationForm input[readonly],
#applicationForm textarea[readonly] {
    background-color: #f1f5f9 !important;
    border: 1px dashed #cbd5e1 !important;
    color: #64748b !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    width: 100%;
}

#applicationForm label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.025em;
}

/* Fix for Tailwind flex labels being overridden by the block display above */
#applicationForm label.flex {
    display: flex !important;
    margin-bottom: 0;
}

/* Ensure checkboxes retain their proper sizes and aren't warped by global inputs */
#applicationForm input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

#applicationForm .step-content h2 {
    color: #102a43;
    font-size: 1.75rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    padding: 2rem;
}

/* Redesigned Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.step-indicator {
    z-index: 10;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.step-circle.active {
    background-color: #268d7c;
    border-color: #268d7c;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(38, 141, 124, 0.3), 0 4px 6px -2px rgba(38, 141, 124, 0.15);
    transform: scale(1.15);
}

.step-circle.completed {
    background-color: #102a43;
    /* deep navy */
    border-color: #102a43;
    color: #ffffff;
}

.step-label {
    margin-top: 1.25rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.step-label.active {
    color: #268d7c;
}

.step-label.completed {
    color: #102a43;
}

#progress-bar-bg {
    position: absolute;
    top: 1.20rem;
    /* center of 3.5rem circle */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 0;
    border-radius: 2px;
}

#progress-bar-fill {
    position: absolute;
    top: 1.20rem;
    left: 0;
    height: 4px;
    background-color: #102a43;
    z-index: 0;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}