/* ===================================================
   CUTOFFPOINT - MOBILE-FIRST RESPONSIVE STYLES
   =================================================== */

/* ===========================================
   CSS VARIABLES FOR CONSISTENCY
   =========================================== */
:root {
    --primary-color: #2d3192;
    --primary-hover: #161968;
    --accent-color: #fac024;
    --text-dark: #333;
    --text-muted: #666;
    --border-color: #e1e1e1;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --transition: all 0.3s ease;
}

/* ===========================================
   BASE MOBILE-FIRST STYLES
   =========================================== */

/* Larger base font size for mobile readability */
html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent zoom on input focus for iOS - MUST be 16px+ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    font-size: 17px !important;
}

/* Improve touch targets */
button,
.btn,
a.btn,
input[type="submit"] {
    min-height: 50px;
    min-width: 50px;
}

/* ===========================================
   HEADER - MOBILE OPTIMIZED
   =========================================== */
.header {
    border-bottom: 1px solid var(--border-color) !important;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-middle {
    padding: 12px 0;
}

/* Mobile menu toggle button - larger touch target */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    margin-right: 12px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-toggle i {
    font-size: 24px;
}

/* Logo responsive sizing */
.logo img {
    max-width: 120px;
    height: auto;
}

/* Hide desktop nav on mobile */
.header-right .icon-box-content.d-lg-show {
    display: none;
}

/* Phone icon visible on mobile */
.header-right .icon-box-icon {
    font-size: 22px;
}

/* Dividers hidden on mobile */
.header-right .divider {
    display: none;
}

/* ===========================================
   MAIN CONTAINER - MOBILE OPTIMIZED
   =========================================== */
.cart.main {
    border-top: none !important;
}

.page-content {
    padding: 0 !important;
}

.page-content.pt-7 {
    padding-top: var(--spacing-md) !important;
}

.page-content.pb-10 {
    padding-bottom: var(--spacing-xl) !important;
}

/* Container padding for mobile */
.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* Full width card on mobile */
.add-shadow {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 0 -8px;
    padding: 24px 20px;
}

.summary {
    padding: 0;
}

.summary.mb-4,
.summary.mb-5 {
    margin-bottom: var(--spacing-md) !important;
}

/* ===========================================
   FORM ELEMENTS - TOUCH FRIENDLY (FIXED)
   =========================================== */

/* Form section headings - LARGER */
.summary-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem !important;
    font-weight: 600;
    color: var(--text-dark);
    padding: var(--spacing-sm) 0 !important;
    margin-top: var(--spacing-sm);
    margin-bottom: 8px;
    border-top: 1px solid var(--border-color);
}

.summary-subtitle:first-child {
    border-top: none;
    margin-top: 0;
}

.summary-subtitle i {
    font-size: 1.6rem !important;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ============================================
   SELECT BOXES - FULL WIDTH FIX
   ============================================ */

/* Remove the theme's select-box arrow positioning */
.select-box {
    position: relative;
    margin-bottom: var(--spacing-md);
    width: 100% !important;
}

/* Hide any ::before or ::after from theme */
.select-box::before,
.select-box::after {
    display: none !important;
}

/* Style the select element itself */
.select-box select,
select.form-control {
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    padding: 14px 48px 14px 16px !important;
    font-size: 17px !important;
    font-weight: 500;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 12px !important;
    color: var(--text-dark) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    transition: var(--transition);
    display: block !important;
    box-sizing: border-box !important;
}

.select-box select:focus,
select.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(45, 49, 146, 0.15) !important;
    outline: none !important;
}

/* Input fields */
input.form-control,
.form-control[type="text"],
.form-control[type="tel"] {
    width: 100% !important;
    height: 56px !important;
    padding: 14px 16px !important;
    font-size: 17px !important;
    font-weight: 500;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #fff !important;
    color: var(--text-dark) !important;
    margin-bottom: var(--spacing-md);
    box-sizing: border-box !important;
    transition: var(--transition);
}

input.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(45, 49, 146, 0.15) !important;
    outline: none !important;
}

input.form-control::placeholder {
    color: #888;
    font-weight: 400;
}

/* Helper text below inputs */
.shipping-address p,
.form-hint,
.personal-info-section p {
    font-size: 0.9rem !important;
    color: var(--text-muted);
    margin-top: -12px;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   SELECT2 - FULL WIDTH FIX
   ============================================ */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 56px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
    padding-left: 16px !important;
    padding-right: 48px !important;
    font-size: 17px !important;
    font-weight: 500;
    color: var(--text-dark) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    right: 16px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(45, 49, 146, 0.15) !important;
}

.select2-dropdown {
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
}

.select2-results__option {
    padding: 14px 16px !important;
    font-size: 17px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}

/* ===========================================
   BUTTONS - MOBILE OPTIMIZED
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 0.9rem !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--primary-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--text-dark);
    color: #fff !important;
}

.btn-dark:hover,
.btn-dark:active {
    background-color: #111;
    color: #fff !important;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-block {
    width: 100%;
}

/* Navigation buttons container */
.btn-checkout {
    min-width: 140px;
    padding: 18px 32px;
}

/* Back/Next button container - Stack on mobile */
div[style*="min-height: 8rem"] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    min-height: auto !important;
}

/* Floating buttons - make full width on mobile */
div[style*="min-height: 8rem"] .btn {
    float: none !important;
    width: 100%;
    margin-top: 0 !important;
}

/* Back button styling */
div[style*="min-height: 8rem"] .btn[style*="float: left"] {
    order: 2;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

/* Next button at top */
div[style*="min-height: 8rem"] .btn[type="submit"]:not([style*="float: left"]) {
    order: 1;
}

/* Special Check button styling */
.btn-danger[style*="background-color: #2d3192"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: var(--accent-color) !important;
    font-weight: 700;
    padding: 20px 32px;
    font-size: 1.2rem !important;
    width: 100%;
    margin: 0 !important;
}

/* ===========================================
   STEP INDICATORS (Visual Progress)
   =========================================== */
.step-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 28px;
    margin-bottom: 12px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.step-item.active .step-number {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(45, 49, 146, 0.35);
}

.step-item.completed .step-number {
    background: #28a745;
    color: #fff;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary-color);
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 10px;
    margin-bottom: 24px;
    max-width: 50px;
    border-radius: 2px;
}

.step-line.completed {
    background: #28a745;
}

/* ===========================================
   SECTION HEADERS
   =========================================== */
.section-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title i {
    font-size: 1.4rem;
}

.section-desc {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* ===========================================
   FORM NAVIGATION
   =========================================== */
.form-navigation {
    padding: 28px 0 12px;
}

.btn-next {
    width: 100%;
    padding: 18px 28px;
    font-size: 1.15rem !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.back-form {
    margin-top: 14px;
}

.btn-back {
    width: 100%;
    padding: 16px 28px;
    background: transparent !important;
    border: 2px solid #e9ecef !important;
    color: #666 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem !important;
    transition: var(--transition);
}

.btn-back:hover {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #333 !important;
}

/* ===========================================
   PERSONAL INFO SECTION
   =========================================== */
.personal-info-section {
    border-top: 1px solid #e9ecef;
    margin-top: 12px;
    padding-top: 12px;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem !important;
    color: #666;
    margin-top: -12px;
    margin-bottom: 18px;
}

.form-hint i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-error {
    font-size: 0.95rem;
    color: #dc3545;
    margin-top: -12px;
    margin-bottom: 18px;
}

/* ===========================================
   REVIEW TABLE - MOBILE OPTIMIZED
   =========================================== */
.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table tr {
    border-bottom: 1px solid var(--border-color);
}

.review-table td {
    padding: 14px 8px;
    font-size: 1rem !important;
}

.review-table td:first-child {
    color: var(--text-muted);
    width: 55%;
}

.review-table td:last-child {
    text-align: right;
    color: var(--text-dark);
    font-weight: 600;
}

.review-table h6 {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.review-table .section-row {
    background: #f8f9fa;
}

.review-table .section-row td {
    padding: 14px 8px 10px;
}

.grade-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e8e9f5;
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===========================================
   RESULTS PAGE - MOBILE OPTIMIZED
   =========================================== */

/* Check code badge */
.font-weight-bold[style*="background-color: #2d3192"] {
    display: inline-block;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 1.2rem !important;
    letter-spacing: 3px;
}

/* Accordion for grades */
.accordion.accordion-simple {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion .card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.accordion .card-header {
    background: var(--bg-light);
    padding: 18px;
}

.accordion .card-header a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem !important;
}

.accordion .card-body {
    padding: 18px;
}

/* Alert box */
.alert-simple {
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--bg-light);
}

.alert-simple .row {
    align-items: center;
}

.alert-simple span[style*="color: #0E9A06"] {
    font-weight: 600;
    font-size: 1rem !important;
}

/* Qualified programmes list */
.mt-3.mb-5 .row {
    padding: 14px 0;
}

.mt-3.mb-5 h5 {
    font-size: 1.1rem !important;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Apply Now buttons in results */
.btn-primary.btn-sm {
    padding: 12px 18px;
    font-size: 1rem !important;
    min-height: 48px;
}

/* Other schools section */
.add-shadow[style*="border: 1px solid #232776"] {
    border-radius: var(--radius-md) !important;
    margin-top: var(--spacing-md);
}

.add-shadow[style*="border: 1px solid #232776"] .row {
    padding: 14px 0;
    align-items: center;
    gap: 10px;
}

.add-shadow[style*="border: 1px solid #232776"] ul {
    padding-left: 18px;
    margin: 0;
}

.add-shadow[style*="border: 1px solid #232776"] li {
    font-size: 1rem !important;
    line-height: 1.5;
}

/* CHECK NOW button */
.add-shadow[style*="border: 1px solid #232776"] .btn {
    padding: 10px 14px;
    font-size: 0.95rem !important;
    white-space: nowrap;
}

/* ===========================================
   PRICE DISPLAY - MOBILE OPTIMIZED
   =========================================== */
.row.mt-5.mb-5 {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 18px !important;
    margin: var(--spacing-md) 0 !important;
}

.row.mt-5.mb-5 h3,
.row.mt-5.mb-5 h4 {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.row.mt-5.mb-5 .text-primary {
    color: var(--primary-color);
    font-size: 1.75rem !important;
    font-weight: 700;
}

/* Payment image */
img[src*="paystack"] {
    max-width: 200px;
    height: auto;
    display: block;
    margin: var(--spacing-sm) auto;
}

/* ===========================================
   FOOTER - MOBILE OPTIMIZED
   =========================================== */
.footer {
    background: var(--text-dark);
    color: #fff;
    margin-top: var(--spacing-xl);
}

.footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer-left,
.footer-center,
.footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-left figure {
    margin-bottom: var(--spacing-sm);
}

.footer .copyright {
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.footer .social-links {
    margin-top: var(--spacing-sm);
}

.footer .social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 8px;
    font-size: 18px;
    transition: var(--transition);
}

.footer .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===========================================
   MOBILE MENU - ENHANCED
   =========================================== */
.mobile-menu-wrapper {
    z-index: 2000;
}

.mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-menu-container {
    width: 85%;
    max-width: 320px;
    padding: var(--spacing-md);
}

.mobile-menu-close {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    padding: 18px;
    font-size: 1.1rem !important;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile bottom bar removed */

/* ===========================================
   SCROLL TOP BUTTON
   =========================================== */
.scroll-top {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    bottom: 24px;
    right: 18px;
    box-shadow: var(--shadow-md);
}

.scroll-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* ===========================================
   PARSLEY VALIDATION ERRORS
   =========================================== */
.parsley-errors-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #dc3545;
    font-size: 0.95rem;
    margin-top: -12px;
    margin-bottom: 14px;
    padding-left: 4px;
}

.parsley-errors-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parsley-errors-list li::before {
    content: '⚠️';
    font-size: 14px;
}

/* Input with error */
input.parsley-error,
select.parsley-error {
    border-color: #dc3545 !important;
}

/* ===========================================
   AUTOCOMPLETE - MOBILE OPTIMIZED
   =========================================== */
.easy-autocomplete.eac-round ul {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 100%;
    margin-top: 4px;
}

.easy-autocomplete-container ul li {
    padding: 14px 16px;
    font-size: 17px;
    border-bottom: 1px solid var(--border-color);
}

.easy-autocomplete-container ul li:last-child {
    border-bottom: none;
}

.easy-autocomplete-container ul li div a {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.easy-autocomplete,
.easy-autocomplete input {
    width: 100% !important;
}

/* ===========================================
   WELCOME HEADER
   =========================================== */
.welcome-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.welcome-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.welcome-icon i {
    font-size: 30px;
    color: var(--accent-color);
}

.welcome-header h3 {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.welcome-header p {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   MAIN CARD
   =========================================== */
.main-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 16px;
    margin: 0;
    position: relative;
}

@media (min-width: 768px) {
    .main-card {
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        padding: 28px 22px;
        margin: 0;
    }
}

/* Slight padding on mobile */
@media (max-width: 767px) {
    .page-content .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* ===========================================
   NOTIFY ME BUTTONS (No Results)
   =========================================== */
.row .col-xs-6 {
    width: 48%;
    display: inline-block;
    margin: 0 1%;
}

.col-xs-6 .btn-block {
    padding: 16px 10px;
    font-size: 1rem !important;
}

/* ===========================================
   PRODUCT NAME (Legacy support)
   =========================================== */
.product-name {
    margin-bottom: 0.3rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    padding-right: 20px;
    white-space: unset !important;
    overflow: hidden;
}

.product-form .compare_btn {
    border: 0;
    flex: 1;
    min-width: 13rem;
    font-size: 1.4rem;
    border-radius: 0.3rem;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    max-width: 20.7rem;
    height: 4.5rem;
}

.product-form .compare_btn:hover {
    color: #fff;
    cursor: pointer;
}

/* ===========================================
   PAGE HEADER
   =========================================== */
.page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: #C8C3BF;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #222;
    padding: 0 var(--spacing-md);
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.add-shadow,
.main-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Button press effect */
.btn:active {
    transform: scale(0.97);
}

/* ===========================================
   TABLET BREAKPOINT (min-width: 768px)
   =========================================== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .add-shadow,
    .main-card {
        margin: 0;
        padding: 36px;
    }

    .summary-subtitle {
        font-size: 1.15rem !important;
    }

    .summary-subtitle i {
        font-size: 1.8rem !important;
    }

    /* Side by side buttons on tablet */
    div[style*="min-height: 8rem"] {
        flex-direction: row;
        justify-content: space-between;
    }

    div[style*="min-height: 8rem"] .btn {
        width: auto;
        min-width: 150px;
    }

    div[style*="min-height: 8rem"] .btn[style*="float: left"] {
        order: 1;
    }

    div[style*="min-height: 8rem"] .btn[type="submit"]:not([style*="float: left"]) {
        order: 2;
    }

    /* Footer horizontal layout */
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: auto;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-end;
    }

    .form-navigation {
        display: flex;
        justify-content: flex-end;
    }

    .btn-next {
        width: auto;
        min-width: 200px;
    }

    .back-form {
        position: absolute;
        left: 36px;
        bottom: 36px;
        margin-top: 0;
    }

    .btn-back {
        width: auto;
        min-width: 130px;
    }
}

/* ===========================================
   DESKTOP BREAKPOINT (min-width: 992px)
   =========================================== */
@media (min-width: 992px) {
    /* Show desktop navigation */
    .header-right .icon-box-content.d-lg-show {
        display: block;
    }

    .header-right .divider {
        display: block;
    }

    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    .logo img {
        max-width: 153px;
    }

    /* Form elements */
    .select-box select,
    select.form-control,
    input.form-control {
        height: 52px !important;
    }

    .add-shadow,
    .main-card {
        padding: 44px;
    }

    .page-header {
        height: 190px;
    }
}

/* ===========================================
   LARGE DESKTOP (min-width: 1200px)
   =========================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===========================================
   SAFE AREA SUPPORT (iPhone X+)
   =========================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===========================================
   REDUCED MOTION PREFERENCE
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
