    /* Accord Brand Colors - Premium Theme */
    :root {
        --brand-yellow: #FDF100;
        --brand-green: #254D07;
        --brand-red: #F82D33;
        
        /* Derived colors for UI hierarchy */
        --primary-yellow: #FDF100;
        --primary-green: #254D07;
        --secondary-green: #254D07;
        --accent-red: #F82D33;
        
        /* Supporting colors */
        --white: #FFFFFF;
        --dark: #1a1a1a;
        --dark-text: #254D07;
        --light-yellow: #FEF9B3;
        --soft-yellow: #FEFCE8;
        --green-light: rgba(37, 77, 7, 0.1);
        --green-medium: rgba(37, 77, 7, 0.3);
        --green-dark: rgba(37, 77, 7, 0.8);
        --red-light: rgba(248, 45, 51, 0.1);
        --red-medium: rgba(248, 45, 51, 0.2);
        --gray-light: #F5F5F5;
        --gray-medium: #E0E0E0;
        --gray-text: #666666;
        --gray-dark: #333333;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--brand-yellow);
    color: var(--dark-text);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

    /* Advanced Animated Background */
    .animated-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--light-yellow) 50%, var(--brand-yellow) 100%);
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        opacity: 0.95;
        overflow: hidden;
    }

    /* Floating Particles Effect */
    .animated-bg::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: 
            radial-gradient(circle at 20% 50%, rgba(253, 241, 0, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(253, 241, 0, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 20%, rgba(37, 77, 7, 0.2) 0%, transparent 50%);
        animation: rotate 20s linear infinite;
        top: -50%;
        left: -50%;
    }

    /* Grid Pattern */
    .animated-bg::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
    }

    /* Additional Background Layers */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background: 
            radial-gradient(ellipse at top, rgba(253, 241, 0, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at bottom, rgba(37, 77, 7, 0.15) 0%, transparent 50%);
        animation: pulseGlow 8s ease-in-out infinite;
        pointer-events: none;
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-image: 
            repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.02) 35px, rgba(255, 255, 255, 0.02) 70px),
            repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.02) 35px, rgba(255, 255, 255, 0.02) 70px);
        animation: slidePattern 20s linear infinite;
        pointer-events: none;
    }

    @keyframes pulseGlow {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }

    @keyframes slidePattern {
        0% { transform: translate(0, 0); }
        100% { transform: translate(70px, 70px); }
    }

    /* Wave Animation Effect */
    @keyframes wave {
        0% { transform: translateX(0) translateY(0) rotate(0deg); }
        50% { transform: translateX(-25px) translateY(-10px) rotate(5deg); }
        100% { transform: translateX(0) translateY(0) rotate(0deg); }
    }

    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

/* Main Container */
.container-fluid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
}

.registration-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Retrieve Card Section */
.retrieve-card-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.retrieve-card-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(37, 77, 7, 0.15);
    border: 2px solid var(--green-light);
    transition: all 0.3s ease;
}

.retrieve-card-card:hover {
    box-shadow: 0 15px 50px rgba(37, 77, 7, 0.2);
    transform: translateY(-2px);
}

.retrieve-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.retrieve-card-header i {
    font-size: 3rem;
    color: var(--brand-green);
    margin-bottom: 10px;
    display: block;
}

.retrieve-card-header h3 {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.retrieve-card-description {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.retrieve-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.retrieve-search-type {
    flex: 0 0 140px;
}

.retrieve-search-type .form-select {
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--gray-medium);
    font-weight: 500;
    transition: all 0.3s ease;
}

.retrieve-search-type .form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem var(--green-light);
}

.retrieve-search-input {
    flex: 1;
    min-width: 200px;
}

.retrieve-search-input .form-control {
    height: 100%;
    border-radius: 12px;
    border: 2px solid var(--gray-medium);
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.retrieve-search-input .form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem var(--green-light);
}

.retrieve-btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: var(--brand-green);
    border: none;
    color: var(--white);
}

.retrieve-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 77, 7, 0.3);
    color: var(--white);
}

.retrieve-btn:active {
    transform: translateY(0);
}

.retrieve-error-message {
    margin-top: 15px;
    padding: 12px 20px;
    background: var(--red-light);
    border: 2px solid var(--brand-red);
    border-radius: 12px;
    color: var(--brand-red);
    font-weight: 500;
    text-align: center;
}

.section-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gray-medium), transparent);
}

.section-divider span {
    position: relative;
    background: var(--brand-yellow);
    padding: 0 20px;
    color: var(--gray-text);
    font-weight: 600;
    font-size: 0.9rem;
}

    /* Welcome Message */
    .welcome-message {
        animation: fadeInDown 0.6s ease-out;
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--brand-green);
        margin: 0;
        text-shadow: 0 2px 4px rgba(37, 77, 7, 0.1);
        letter-spacing: 0.5px;
    }

    /* Logo Section */
    .logo-section {
        animation: fadeInDown 0.8s ease-out;
    }

    .logo-img {
        max-width: 150px;
        height: auto;
        margin-bottom: 20px;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    .main-title {
        font-size: 3rem;
        font-weight: 800;
        color: var(--dark-text);
        text-shadow: none;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.2rem;
        color: var(--dark-text);
        font-weight: 500;
        text-shadow: none;
    }

    /* Progress Indicator */
.progress-container {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    gap: 5px;
    flex-wrap: nowrap;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 0;
    flex-shrink: 1;
}

    .step-number {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(39, 75, 14, 0.1);
        color: var(--dark-text);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.2rem;
        margin: 0 auto 5px;
        transition: all 0.3s ease;
        border: 3px solid rgba(39, 75, 14, 0.2);
        position: relative;
        z-index: 3;
    }

    .step.active .step-number {
        background: var(--brand-green);
        color: var(--brand-yellow);
        transform: scale(1.1);
        box-shadow: 0 5px 20px rgba(39, 75, 14, 0.4);
        border-color: var(--primary-green);
    }

    .step.completed .step-number {
        background: var(--brand-green);
        color: var(--brand-yellow);
    }

    .step-label {
        font-size: 0.85rem;
        color: var(--dark-text);
        font-weight: 500;
        opacity: 0.6;
        transition: all 0.3s ease;
        margin-top: 15px;
        padding-top: 5px;
        position: relative;
        z-index: 2;
    }

    .step.active .step-label {
        opacity: 1;
        font-weight: 600;
        color: var(--brand-green);
    }

    .progress-bar {
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        margin-top: 10px;
        z-index: 1;
    }

    .progress-fill {
        height: 100%;
        background: var(--brand-green);
        border-radius: 10px;
        transition: width 0.5s ease;
        width: 0%;
        box-shadow: 0 0 10px var(--green-medium);
    }

    /* Form Steps */
    .form-step {
        display: none;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-step.active {
        display: block;
        opacity: 1;
        transform: translateX(0);
        animation: slideInRight 0.5s ease-out;
    }

    .form-step.prev-active {
        transform: translateX(-50px);
        opacity: 0;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Step Card */
.step-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

    .step-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--brand-green), var(--brand-green), var(--brand-red));
    }

    .step-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .step-header i {
        font-size: 3rem;
        color: var(--brand-green);
        margin-bottom: 15px;
        display: block;
    }

    .step-header h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--brand-green);
        margin: 0;
    }

    .step-description {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
        font-size: 1rem;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 25px;
    }

    .form-group label {
        font-weight: 600;
        color: var(--brand-green);
        margin-bottom: 8px;
        display: block;
        font-size: 0.95rem;
    }

    .input-wrapper {
        position: relative;
    }

    .input-wrapper i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brand-green);
        font-size: 1.2rem;
        z-index: 1;
    }

    .input-wrapper .form-control,
    .input-wrapper select,
    .input-wrapper textarea {
        padding-left: 45px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        height: 50px;
    }

    .input-wrapper textarea {
        height: auto;
        padding-top: 12px;
        resize: vertical;
    }

    .input-wrapper .form-control:focus,
    .input-wrapper select:focus,
    .input-wrapper textarea:focus {
        border-color: var(--brand-green);
        box-shadow: 0 0 0 0.2rem var(--green-light);
        outline: none;
    }

    .input-wrapper .form-control:read-only {
        background-color: #f8f9fa;
        cursor: not-allowed;
    }

    .form-control.is-invalid {
        border-color: var(--brand-red);
        box-shadow: 0 0 0 0.2rem var(--red-light);
    }

    .form-control.is-invalid:focus {
        border-color: var(--brand-red);
        box-shadow: 0 0 0 0.2rem var(--red-medium);
    }

    /* Manual input wrapper for "Others" option */
    #wardOtherWrapper,
    #pollingUnitOtherWrapper {
        margin-top: 12px;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    #wardOtherWrapper.slide-down,
    #pollingUnitOtherWrapper.slide-down {
        opacity: 1;
        max-height: 100px;
    }

    /* Style for "Others" option in select dropdowns */
    select option[value="__OTHER__"] {
        font-style: italic;
        color: var(--brand-green);
        font-weight: 500;
    }

    /* NIN Status */
    .nin-status {
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
        display: none;
        animation: slideDown 0.3s ease;
    }

    .nin-status.verified {
        background: var(--green-light);
        color: var(--brand-green);
        border: 1px solid var(--green-medium);
        display: block;
    }

    .nin-status.error {
        background: var(--red-light);
        color: var(--brand-red);
        border: 1px solid var(--red-medium);
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Buttons */
    .btn {
        padding: 12px 30px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-primary {
        background: var(--brand-green);
        color: var(--brand-yellow);
        box-shadow: 0 4px 12px var(--green-medium);
        font-weight: 600;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--green-dark);
        background: var(--brand-green);
        opacity: 0.95;
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px var(--green-medium);
    }

    .btn-secondary {
        background: var(--brand-yellow);
        color: var(--brand-green);
        border: 2px solid var(--brand-green);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-secondary:hover {
        background: var(--soft-yellow);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-success {
        background: var(--brand-green);
        color: var(--brand-yellow);
        box-shadow: 0 4px 12px var(--green-medium);
        font-weight: 600;
    }

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--green-dark);
        opacity: 0.95;
    }

    .btn-danger {
        background: var(--brand-red);
        color: var(--white);
        box-shadow: 0 4px 12px var(--red-medium);
    }

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(248, 45, 51, 0.4);
        opacity: 0.9;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

    .step-actions {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
        gap: 15px;
    }

    .btn-next,
    .btn-prev {
        min-width: 150px;
        justify-content: center;
    }

    /* Photo Action Grid - Premium Card Layout */
    /* Step Description Enhancement */
    .step-description {
        font-size: 0.95rem;
        color: #555;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    /* Photo Action Grid - Premium Card Layout */
    .photo-action-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 30px 0;
        padding: 0 5px;
    }

    .photo-action-card {
        background: var(--white);
        border: 2px solid #e8e8e8;
        border-radius: 16px;
        padding: 28px 20px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .photo-action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .photo-action-card:hover {
        border-color: var(--brand-green);
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(37, 77, 7, 0.15);
    }

    .photo-action-card:hover::before {
        transform: scaleX(1);
    }

    .photo-action-card:active {
        transform: translateY(-2px);
    }

    .photo-action-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        background: linear-gradient(135deg, var(--brand-green) 0%, rgba(37, 77, 7, 0.8) 100%);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .photo-action-card:hover .photo-action-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 4px 12px rgba(37, 77, 7, 0.3);
    }

    .photo-action-icon i {
        font-size: 28px;
        color: var(--white);
    }

    .photo-action-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--brand-green);
        margin: 0 0 8px 0;
        letter-spacing: -0.3px;
    }

    .photo-action-desc {
        font-size: 0.875rem;
        color: #666;
        margin: 0 0 20px 0;
        line-height: 1.4;
    }

    .photo-action-btn {
        width: 100%;
        padding: 12px 20px;
        background: var(--brand-green);
        color: var(--white);
        border: none;
        border-radius: 10px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: auto;
    }

    .photo-action-btn:hover {
        background: rgba(37, 77, 7, 0.9);
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(37, 77, 7, 0.3);
    }

    .photo-action-btn:active {
        transform: translateX(2px);
    }

    .photo-action-btn i {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .photo-action-btn:hover i {
        transform: translateX(2px);
    }

    /* Photo Preview Section */
    .photo-preview-section {
        margin: 30px 0;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .photo-preview-container {
        background: var(--white);
        border: 2px solid var(--brand-green);
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 16px rgba(37, 77, 7, 0.1);
    }

    .photo-preview-wrapper {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 16px;
        border-radius: 12px;
        overflow: hidden;
        background: #f5f5f5;
        aspect-ratio: 3/4;
    }

    .preview-photo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .photo-remove-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        background: rgba(248, 45, 51, 0.95);
        color: var(--white);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    .photo-remove-btn:hover {
        background: var(--brand-red);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(248, 45, 51, 0.4);
    }

    .photo-remove-btn i {
        font-size: 18px;
    }

    .photo-preview-hint {
        text-align: center;
        margin: 0;
        font-size: 0.9rem;
        color: var(--brand-green);
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .photo-preview-hint i {
        color: var(--brand-green);
        font-size: 1.1rem;
    }

    /* Camera Container */
    .camera-container {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 30px auto;
        border-radius: 20px;
        overflow: hidden;
        background: #000;
        aspect-ratio: 3/4;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        min-height: 400px;
        border: 3px solid var(--brand-green);
    }

    .camera-instructions {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: var(--white);
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        z-index: 2;
        backdrop-filter: blur(10px);
    }

    #video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .camera-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .face-guide {
        width: 75%;
        height: 80%;
        max-width: 320px;
        max-height: 420px;
        border: 3px solid var(--brand-yellow);
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
        box-shadow: 0 0 0 4px rgba(253, 241, 0, 0.2), inset 0 0 0 2px rgba(253, 241, 0, 0.1);
    }

    @keyframes pulse {
        0%, 100% { 
            opacity: 0.8; 
            transform: scale(1);
            box-shadow: 0 0 0 4px rgba(253, 241, 0, 0.2), inset 0 0 0 2px rgba(253, 241, 0, 0.1);
        }
        50% { 
            opacity: 1; 
            transform: scale(1.02);
            box-shadow: 0 0 0 6px rgba(253, 241, 0, 0.3), inset 0 0 0 2px rgba(253, 241, 0, 0.2);
        }
    }

    .captured-photo-container {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 400px;
    }

    #capturedPhoto {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .retake-photo {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }

    .camera-controls {
        text-align: center;
        margin: 25px 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-capture-large {
        padding: 16px 48px;
        font-size: 1.1rem;
        border-radius: 50px;
        background: var(--brand-green);
        color: var(--white);
        border: none;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 6px 20px rgba(37, 77, 7, 0.3);
        min-width: 200px;
        justify-content: center;
    }

    .btn-capture-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(37, 77, 7, 0.4);
        background: rgba(37, 77, 7, 0.95);
    }

    .btn-capture-large:active {
        transform: translateY(0);
    }

    .btn-capture-large i {
        font-size: 1.3rem;
    }

    .btn-cancel-camera {
        padding: 12px 32px;
        font-size: 0.95rem;
        border-radius: 50px;
        background: transparent;
        color: #666;
        border: 2px solid #ddd;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-cancel-camera:hover {
        border-color: #999;
        color: #333;
        background: #f5f5f5;
    }

    /* Review Section */
    .review-section {
        background: #f8f9fa;
        border-radius: 15px;
        padding: 25px;
    }

    .review-item {
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .review-item:last-child {
        border-bottom: none;
    }

    .review-item strong {
        color: var(--brand-green);
        font-weight: 600;
        min-width: 150px;
    }

    .review-item span {
        color: #333;
        text-align: right;
        flex: 1;
    }

    .review-photo {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
        border: 3px solid var(--brand-green);
    }

    /* Success Modal */
    .success-modal-content {
        border-radius: 20px;
        border: none;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        padding: 0;
        max-height: 90vh;
    }

    .success-modal-content .modal-body {
        padding: 40px 30px;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Custom scrollbar for modal */
    .success-modal-content .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .success-modal-content .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .success-modal-content .modal-body::-webkit-scrollbar-thumb {
        background: var(--brand-green);
        border-radius: 10px;
    }

    .success-modal-content .modal-body::-webkit-scrollbar-thumb:hover {
        background: var(--brand-green);
        opacity: 0.8;
    }

    .success-icon-wrapper {
        position: relative;
        display: inline-block;
        margin-bottom: 30px;
    }

    .success-icon {
        font-size: 6rem;
        color: var(--brand-green);
        animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
        z-index: 2;
    }

    .success-checkmark-animation {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: var(--green-light);
        animation: ripple 1.5s ease-out infinite;
        z-index: 1;
    }

    @keyframes scaleIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes ripple {
        0% {
            transform: translate(-50%, -50%) scale(0.8);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.5);
            opacity: 0;
        }
    }

    .success-title {
        color: var(--brand-green);
        font-weight: 800;
        font-size: 2rem;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }

    .success-subtitle {
        color: #666;
        font-size: 1.1rem;
        margin-bottom: 30px;
        font-weight: 400;
    }

    .generating-card-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 15px;
        padding: 30px 20px;
        margin: 30px 0;
        border: 2px dashed var(--primary-green);
    }

    .generating-spinner {
        margin-bottom: 20px;
    }

    .generating-spinner .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 4px;
        color: var(--brand-green);
    }

    .generating-text {
        color: var(--brand-green);
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .generating-text i {
        font-size: 1.3rem;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.5;
        }
    }

    .membership-card-wrapper {
        margin: 30px 0;
        animation: fadeInUp 0.6s ease-out;
    }

    .card-ready-message {
        background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
        color: white;
        padding: 15px 25px;
        border-radius: 10px;
        margin-bottom: 20px;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .card-ready-message i {
        font-size: 1.5rem;
        margin-right: 10px;
        animation: bounceIn 0.6s ease-out;
    }

    @keyframes bounceIn {
        0% {
            transform: scale(0);
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1);
        }
    }

    .success-actions {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 2px solid #e9ecef;
    }

    .success-actions .btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(4, 167, 88, 0.3);
        transition: all 0.3s ease;
    }

    .success-actions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--green-dark);
    }

    .success-actions .btn i {
        margin-right: 8px;
    }

    /* Download Buttons */
    .download-buttons {
        margin: 30px 0;
        padding: 20px 0;
    }

    .download-buttons-row {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        min-width: 180px;
    }

    .download-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .download-buttons .btn i {
        margin-right: 8px;
    }

    .download-buttons .btn-success {
        background: var(--brand-green);
        border-color: var(--primary-green);
        color: var(--brand-yellow);
    }

    .download-buttons .btn-danger {
        background: #dc3545;
        border-color: #dc3545;
    }

    @media (max-width: 576px) {
        .download-buttons-row {
            flex-direction: column;
        }

        .download-buttons .btn {
            width: 100%;
        }
    }

    /* Membership Card */
    /* Card Section Wrapper - Light Gray Background like ADC */
    .card-section {
        margin-bottom: 30px;
        width: 100%;
        display: block;
        background: #f5f5f5;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #membershipCardContainer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0 auto;
    }

    .card-label {
        text-align: left;
        font-size: 1.1rem;
        font-weight: 600;
        color: #666;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* Main Card Container - White Card with Green Header */
    .membership-card {
        background: var(--white);
        border-radius: 10px;
        padding: 0;
        color: var(--dark);
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 240px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
        border: 1px solid var(--brand-green);
        display: flex;
        flex-direction: column;
    }

    /* Ensure card sections are properly stacked */
    .membership-card > .card-header {
        flex-shrink: 0;
    }

    .membership-card > .card-body {
        flex: 1 1 auto;
        min-height: 0;
    }

    .membership-card > .card-signatures {
        flex-shrink: 0;
    }

    .membership-card::before {
        display: none;
    }

    .membership-card::after {
        display: none;
    }

    /* Green Header Section */
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--brand-green);
        padding: 10px 12px;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        min-height: 50px;
    }

    .card-header-left {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .card-logo {
        max-width: 40px;
        width: 40px;
        height: auto;
        flex-shrink: 0;
    }

    .card-header-center {
        flex: 1;
        text-align: center;
        padding: 0 8px;
    }

    .card-title-main {
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--white);
        line-height: 1.2;
        margin: 0;
        text-transform: uppercase;
    }

    .card-title-sub {
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: var(--white);
        margin-top: 2px;
        margin-bottom: 0;
        text-transform: uppercase;
    }

    .card-header-right {
        flex: 0 0 auto;
    }

    .card-nigeria {
        background: transparent;
        padding: 0;
        border-radius: 0;
        font-size: 0.55rem;
        font-weight: 600;
        text-align: right;
        line-height: 1.2;
        color: var(--white);
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* White Body Section */
    .card-body {
        position: relative;
        z-index: 1;
        overflow: visible;
        display: flex;
        gap: 10px;
        flex: 1 1 auto;
        align-items: flex-start;
        padding: 18px 18px 12px;
        justify-content: space-between;
        background: var(--white);
        min-height: 0;
        flex-shrink: 1;
    }

    .card-body-left {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .card-photo {
        width: 70px;
        height: 85px;
        border-radius: 4px;
        border: 1px solid #ddd;
        object-fit: cover;
        display: block;
        background: var(--white);
        flex-shrink: 0;
    }

    .card-body-center {
        flex: 1 1 auto;
        display: flex;
        align-items: flex-start;
        min-width: 0;
        max-width: calc(100% - 160px);
        padding: 0 6px;
    }

    .card-body-right {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-width: 85px;
    }

    .card-info {
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        border: none;
        box-shadow: none;
        overflow: visible;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    /* Card info field - stacked label above value */
    .card-info-field {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3px;
    }

    .card-info-field:last-child {
        margin-bottom: 0;
    }

    /* Name field - most prominent */
    .card-info-field-name {
        margin-bottom: 4px;
    }

    /* Card number field */
    .card-info-field-number {
        margin-bottom: 4px;
    }

    /* State and LGA row - side by side */
    .card-info-row {
        display: flex;
        gap: 15px;
        margin-bottom: 3px;
        width: 100%;
    }

    .card-info-field-state,
    .card-info-field-lga {
        flex: 1;
        min-width: 0;
    }

    /* Ward field */
    .card-info-field-ward {
        margin-bottom: 0;
    }

    /* Label styling - smaller and lighter */
    .card-info-label {
        font-weight: 500;
        font-size: 0.55rem;
        letter-spacing: 0.2px;
        color: #666;
        margin-bottom: 2px;
        text-transform: uppercase;
        line-height: 1.2;
    }

    /* Value styling - larger and bolder */
    .card-info-value {
        text-align: left;
        font-weight: 600;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
        overflow: visible;
        font-size: 0.65rem;
        letter-spacing: 0.1px;
        line-height: 1.4;
        color: #333;
    }

    /* Full name value - most prominent */
    .card-info-value-name {
        text-align: left;
        font-weight: 700;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
        overflow: visible;
        font-size: 0.75rem;
        letter-spacing: 0.2px;
        line-height: 1.4;
        color: #333;
        text-transform: uppercase;
    }

    /* Card number value - green and prominent */
    .card-number {
        color: var(--brand-green);
        font-weight: 700;
        font-size: 0.7rem;
        background: transparent;
        padding: 0;
        border-radius: 0;
        letter-spacing: 0.3px;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
        overflow: visible;
        text-transform: uppercase;
    }

    .card-qr {
        text-align: center;
        background: var(--white);
        padding: 6px;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 85px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        min-height: 75px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .card-qr img {
        width: 65px;
        height: 65px;
        display: block;
        max-width: 100%;
        height: auto;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .card-qr canvas {
        display: block;
        width: 65px !important;
        height: 65px !important;
        max-width: 100%;
    }

    .qr-label {
        margin: 4px 0 0 0;
        font-size: 0.55rem;
        color: #999;
        font-weight: 500;
        letter-spacing: 0.1px;
    }

    /* QR code display - visible for verification */
    #qrCode {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 65px;
    }

    #qrCodeImage {
        width: 65px !important;
        height: 65px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 auto;
    }
    
    /* Signature Section - ADC Sample Style */
    .card-signatures {
        display: flex;
        justify-content: space-around;
        align-items: flex-end;
        gap: 12px;
        padding: 6px 20px 10px;
        min-height: 64px;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
        background: #fff;
        flex-shrink: 0;
        position: relative;
    }

    .signature-block {
        width: 45%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
    }

    .signature-img {
        display: block;
        object-fit: contain;
        max-width: 100%;
        margin: 0 auto 4px;
    }

    .chairman-signature {
        width: 54px;
        height: 16px;
    }

    .secretary-signature {
        width: 42px;
        height: 14px;
    }

    .signature-label {
        font-size: 9px;
        line-height: 1.1;
        font-weight: 600;
        color: #222;
        margin: 0;
    }

    /* Legacy footer styles - keeping for compatibility */
    .card-footer {
        display: none;
    }

    .card-signature-left,
    .card-signature-right {
        display: none;
    }

    .signature-line {
        display: none;
    }

    /* Responsive adjustments - maintain landscape on all screens */
    @media (max-width: 768px) {
        .card-section {
            padding: 15px;
        }

        .membership-card {
            max-width: 100%;
            min-height: 220px;
        }

        .card-header {
            padding: 8px 10px;
            min-height: 45px;
        }

        .card-body {
            gap: 6px;
            padding: 10px;
        }

        .card-body-center {
            max-width: calc(100% - 140px);
            padding: 0 4px;
        }

        .card-photo {
            width: 65px;
            height: 80px;
        }

        .card-qr {
            min-height: 70px;
            width: 70px;
            padding: 5px;
        }

        .card-body-right {
            min-width: 70px;
        }

        .card-qr img,
        .card-qr canvas {
            width: 60px !important;
            height: 60px !important;
        }

        .card-info {
            gap: 3px;
        }

        .card-info-field {
            margin-bottom: 2px;
        }

        .card-info-field-name,
        .card-info-field-number {
            margin-bottom: 3px;
        }

        .card-info-row {
            gap: 10px;
            margin-bottom: 2px;
        }

        .card-info-label {
            font-size: 0.5rem;
            margin-bottom: 1px;
        }

        .card-info-value {
            font-size: 0.6rem;
            line-height: 1.3;
        }

        .card-info-value-name {
            font-size: 0.7rem;
            line-height: 1.3;
        }

        .card-number {
            font-size: 0.65rem;
        }

        .card-title-main {
            font-size: 0.85rem;
        }

        .card-title-sub {
            font-size: 0.6rem;
        }

        .card-logo {
            max-width: 35px;
            width: 35px;
        }

        .card-nigeria {
            font-size: 0.5rem;
        }

        .qr-label {
            font-size: 0.5rem;
        }

        .card-body {
            padding: 15px 15px 10px;
        }

        .card-signatures {
            padding: 5px 16px 8px;
            min-height: 60px;
            gap: 10px;
        }

        .signature-block {
            width: 45%;
        }

        .chairman-signature {
            width: 50px;
            height: 15px;
        }

        .secretary-signature {
            width: 40px;
            height: 13px;
        }

        .signature-label {
            font-size: 8px;
        }

        .card-back-body {
            padding: 15px 12px;
        }

        .card-back-title {
            font-size: 0.75rem;
        }

        .card-back-text {
            font-size: 0.65rem;
        }
    }

    /* Loading Overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .loading-overlay.show {
        display: flex;
    }

    .spinner-border {
        width: 3rem;
        height: 3rem;
    }

    /* Toast Notifications */
    .toast-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: var(--white);
        color: var(--dark);
        padding: 15px 20px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 10000;
        min-width: 300px;
        max-width: 400px;
        transform: translateX(400px);
        opacity: 0;
        transition: all 0.3s ease;
        border-left: 4px solid;
    }

    .toast-notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .toast-notification.error {
        border-left-color: var(--accent-red);
    }

    .toast-notification.success {
        border-left-color: var(--primary-green);
    }

    .toast-notification i {
        font-size: 1.5rem;
    }

    .toast-notification.error i {
        color: var(--brand-red);
    }

    .toast-notification.success i {
        color: var(--brand-green);
    }

    /* Responsive Design */
    @media (max-width: 992px) {
        .registration-wrapper {
            padding: 15px;
        }
        
        .main-title {
            font-size: 2.5rem;
        }
        
        .subtitle {
            font-size: 1.1rem;
        }
        
        .step-card {
            padding: 30px;
        }
    }

    @media (max-width: 768px) {
        .container-fluid {
            padding-left: 0;
            padding-right: 0;
        }
        
        .registration-wrapper {
            padding: 10px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .welcome-title {
            font-size: 1.2rem;
            padding: 0 10px;
            line-height: 1.4;
        }
        
        .main-title {
            font-size: 1.75rem;
            letter-spacing: 0.5px;
            word-wrap: break-word;
            padding: 0 5px;
        }
        
        .subtitle {
            font-size: 0.95rem;
            padding: 0 5px;
        }
        
        .logo-img {
            max-width: 100px;
            margin-bottom: 10px;
        }
        
        .logo-section {
            margin-bottom: 20px !important;
        }
        
        .progress-container {
            margin-bottom: 20px;
            padding: 0 5px;
        }
        
        .step-card {
            padding: 15px;
            border-radius: 15px;
            margin: 0 5px;
            width: calc(100% - 10px);
            box-sizing: border-box;
        }
        
        .step-header h3 {
            font-size: 1.3rem;
            word-wrap: break-word;
        }
        
        .step-header i {
            font-size: 2rem;
        }
        
        .step-number {
            width: 35px;
            height: 35px;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }
        
        .step-label {
            font-size: 0.6rem;
            margin-top: 8px;
            padding-top: 2px;
            line-height: 1.1;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }
        
        .progress-steps {
            flex-wrap: nowrap;
            margin-bottom: 15px;
            gap: 2px;
            width: 100%;
            overflow: hidden;
        }
        
        .step {
            flex: 1 1 auto;
            min-width: 0;
            margin-bottom: 0;
            padding: 0 2px;
        }
        
        .progress-bar {
            margin-top: 12px;
            height: 3px;
            width: 100%;
        }
        
        .step-actions {
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }
        
        .btn-next,
        .btn-prev {
            width: 100%;
            min-width: auto;
            box-sizing: border-box;
        }
        
        .form-group {
            margin-bottom: 18px;
        }
        
        .input-wrapper .form-control,
        .input-wrapper select,
        .input-wrapper textarea {
            font-size: 0.9rem;
            height: 45px;
            width: 100%;
            box-sizing: border-box;
        }
        
        .photo-action-grid {
            grid-template-columns: 1fr;
            gap: 16px;
            margin: 20px 0;
        }

        .photo-action-card {
            padding: 24px 18px;
        }

        .photo-action-icon {
            width: 56px;
            height: 56px;
            margin-bottom: 14px;
        }

        .photo-action-icon i {
            font-size: 24px;
        }

        .photo-action-title {
            font-size: 1rem;
        }

        .photo-action-desc {
            font-size: 0.8rem;
            margin-bottom: 16px;
        }

        .photo-action-btn {
            padding: 11px 18px;
            font-size: 0.9rem;
        }

        .photo-preview-container {
            padding: 20px;
        }

        .photo-preview-wrapper {
            max-width: 100%;
        }

        .camera-container {
            max-width: 100%;
            margin: 20px 0;
        }

        .btn-capture-large {
            padding: 14px 40px;
            font-size: 1rem;
            min-width: 180px;
        }

        .camera-instructions {
            font-size: 0.8rem;
            padding: 8px 16px;
            bottom: 15px;
        }
        
        .camera-container {
            max-width: 100%;
            width: 100%;
        }
        
        .review-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
            padding: 10px 0;
            word-wrap: break-word;
        }
        
        .review-item strong {
            min-width: auto;
        }
        
        .review-item span {
            text-align: left;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .step-description {
            font-size: 0.9rem;
            padding: 0 5px;
        }
    }

    @media (max-width: 576px) {
        .registration-wrapper {
            padding: 8px;
        }
        
        .main-title {
            font-size: 1.5rem;
            letter-spacing: 0;
            padding: 0 3px;
        }
        
        .subtitle {
            font-size: 0.85rem;
            padding: 0 3px;
        }
        
        .logo-img {
            max-width: 80px;
            margin-bottom: 8px;
        }
        
        .logo-section {
            margin-bottom: 15px !important;
        }
        
        .progress-container {
            margin-bottom: 15px;
            padding: 0 3px;
        }
        
        .step-card {
            padding: 12px;
            margin: 0 3px;
            width: calc(100% - 6px);
        }
        
        .step-header h3 {
            font-size: 1.1rem;
        }
        
        .step-header i {
            font-size: 1.75rem;
        }
        
        .step-number {
            width: 30px;
            height: 30px;
            font-size: 0.8rem;
            margin-bottom: 4px;
        }
        
        .step-label {
            font-size: 0.55rem;
            margin-top: 6px;
            padding-top: 2px;
            line-height: 1;
        }
        
        .progress-bar {
            margin-top: 10px;
            height: 2.5px;
        }
        
        .btn {
            padding: 10px 15px;
            font-size: 0.85rem;
            width: 100%;
        }
        
        .step-description {
            font-size: 0.85rem;
            padding: 0 3px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            font-size: 0.85rem;
        }
        
        .input-wrapper .form-control,
        .input-wrapper select,
        .input-wrapper textarea {
            font-size: 0.85rem;
            height: 42px;
            padding-left: 38px;
        }
        
        .input-wrapper i {
            font-size: 0.95rem;
            left: 10px;
        }
        
        .review-section {
            padding: 12px;
        }
        
        .review-item {
            padding: 8px 0;
            font-size: 0.85rem;
        }
        
        .review-photo {
            width: 70px;
            height: 70px;
        }
        
        .toast-notification {
            min-width: 280px;
            max-width: calc(100vw - 40px);
            right: 10px;
            left: 10px;
            top: 10px;
        }
    }

    @media (max-width: 400px) {
        .registration-wrapper {
            padding: 5px;
        }
        
        .main-title {
            font-size: 1.3rem;
        }
        
        .subtitle {
            font-size: 0.8rem;
        }
        
        .logo-img {
            max-width: 70px;
        }
        
        .step-card {
            padding: 10px;
            margin: 0 2px;
            width: calc(100% - 4px);
        }
        
        .step-label {
            font-size: 0.5rem;
            margin-top: 5px;
        }
        
        .step-number {
            width: 28px;
            height: 28px;
            font-size: 0.75rem;
        }
        
        .progress-bar {
            margin-top: 8px;
            height: 2px;
        }
        
        .step-header h3 {
            font-size: 1rem;
        }
        
        .step-header i {
            font-size: 1.5rem;
        }
        
        .btn {
            padding: 8px 12px;
            font-size: 0.8rem;
        }
        
        .input-wrapper .form-control,
        .input-wrapper select,
        .input-wrapper textarea {
            font-size: 0.8rem;
            height: 40px;
            padding-left: 35px;
        }
    }

    /* Animations */
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    .shake {
        animation: shake 0.5s ease;
    }

    /* Card Back Styles */
    .card-back {
        margin-top: 0;
    }

    .card-back-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--brand-green);
        padding: 10px 12px;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        min-height: 50px;
    }

    .card-back-header-left,
    .card-back-header-center,
    .card-back-header-right {
        flex: 0 0 auto;
    }

    .card-back-header-center {
        flex: 1;
        text-align: center;
        padding: 0 8px;
    }

    .card-back-body {
        position: relative;
        z-index: 1;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 15px;
        background: var(--white);
        min-height: 120px;
    }

    .card-back-content {
        text-align: center;
        color: #333;
        max-width: 100%;
        width: 100%;
    }

    .card-back-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--brand-yellow);
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .card-back-text {
        font-size: 0.7rem;
        line-height: 1.6;
        color: #333;
        text-align: center;
    }

    .card-back-text p {
        margin-bottom: 8px;
        font-weight: 400;
    }

    .card-back-text p:last-child {
        margin-bottom: 0;
    }

    .card-back-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 12px;
        border-top: 1px solid #eee;
        position: relative;
        z-index: 1;
        background: var(--white);
    }

    .card-id-label {
        font-size: 0.65rem;
        color: #999;
        margin-bottom: 4px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .card-id-value {
        font-size: 0.8rem;
        color: var(--brand-green);
        font-weight: 700;
        background: transparent;
        padding: 0;
        border-radius: 0;
        letter-spacing: 0.3px;
    }