/* ============================================
   UMOJA WETU - Register Page Custom Styles
   ============================================ */

/* Chevron for register <select> — used to override Bootstrap validation backgrounds */
:root {
    --register-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231EB53A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Register Hero Section */
.register-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1EB53A;
    padding: 100px 0 60px;
}

.register-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.register-hero-section .hero-background-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/Flag-of-Tanzania.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    animation: flagBackgroundShift 30s ease-in-out infinite;
}

@keyframes flagBackgroundShift {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.register-hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.register-hero-section .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    animation: titleSlideIn 1s ease-out forwards;
}

.register-hero-section .hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8), transparent);
    animation: registerUnderlineExpand 1s ease-out 0.5s forwards;
    border-radius: 2px;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes registerUnderlineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 60%;
    }
}

.register-hero-section .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.4);
    animation: subtitleFadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Register Form Section */
.register-form-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.register-intro {
    padding: 20px;
    padding-top: 0;
    margin-bottom: 30px;
}

.register-intro .section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color, #1EB53A), var(--secondary-color, #0047AB));
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: tagSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

.register-intro .section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes tagSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.register-intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--text-dark, #2c3e50);
    position: relative;
    display: inline-block;
    animation: h2SlideIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    letter-spacing: 1px;
}

.register-intro h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #1EB53A), var(--secondary-color, #0047AB));
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 0.6s forwards;
}

@keyframes h2SlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 150px;
    }
}

.register-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light, #6c757d);
}

/* Form Card */
.register-form-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.register-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1EB53A, #0047AB);
}

/* Form Styling */
.register-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.row {
    margin-bottom: 20px;
}

.form-label,
.col-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark, #2c3e50);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 8px;
    color: #1EB53A;
    width: 20px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--text-dark, #2c3e50);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #1EB53A;
    /* Never use background: shorthand here — it clears select chevrons / validation layers */
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 181, 58, 0.1);
}

select.form-control:focus,
select.form-select:focus {
    background-image: var(--register-select-chevron);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 12px;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Single custom chevron for all selects — explicit size stops any icon from tiling */
select.form-control,
select.form-select {
    cursor: pointer;
    appearance: none;
    background-image: var(--register-select-chevron);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 12px;
    padding-right: 45px;
}

/*
 * Bootstrap 5 uses .form-select.is-invalid:not([multiple]):not([size]) with a *two-layer*
 * background (chevron + error icon). That beats our simpler selector and can tile badly with theme CSS.
 * Force a single chevron; validation stays visible via border (see .form-select.is-invalid below).
 */
select.form-select.is-invalid:not([multiple]):not([size]),
select.form-select.is-invalid:not([multiple])[size="1"],
select.form-control.form-select.is-invalid:not([multiple]):not([size]),
select.form-control.form-select.is-invalid:not([multiple])[size="1"],
.was-validated select.form-select:invalid:not([multiple]):not([size]),
.was-validated select.form-select:invalid:not([multiple])[size="1"],
.was-validated select.form-control:invalid:not([multiple]):not([size]),
.was-validated select.form-control:invalid:not([multiple])[size="1"] {
    background-image: var(--register-select-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 12px !important;
    padding-right: 45px !important;
}

select.form-select.is-valid:not([multiple]):not([size]),
select.form-select.is-valid:not([multiple])[size="1"],
select.form-control.form-select.is-valid:not([multiple]):not([size]),
select.form-control.form-select.is-valid:not([multiple])[size="1"],
.was-validated select.form-select:valid:not([multiple]):not([size]),
.was-validated select.form-select:valid:not([multiple])[size="1"],
.was-validated select.form-control:valid:not([multiple]):not([size]),
.was-validated select.form-control:valid:not([multiple])[size="1"] {
    background-image: var(--register-select-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 12px !important;
    padding-right: 45px !important;
}

select.form-select.is-invalid:focus:not([multiple]):not([size]),
select.form-select.is-invalid:focus:not([multiple])[size="1"],
.was-validated select.form-select:invalid:focus:not([multiple]):not([size]),
.was-validated select.form-select:invalid:focus:not([multiple])[size="1"] {
    background-image: var(--register-select-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 12px !important;
}

select.form-select.is-valid:focus:not([multiple]):not([size]),
select.form-select.is-valid:focus:not([multiple])[size="1"],
.was-validated select.form-select:valid:focus:not([multiple]):not([size]),
.was-validated select.form-select:valid:focus:not([multiple])[size="1"] {
    background-image: var(--register-select-chevron) !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 12px !important;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #1EB53A;
}

.password-toggle i {
    font-size: 1.1rem;
}

/* Fieldset Styling */
fieldset {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

fieldset:hover {
    border-color: #1EB53A;
    box-shadow: 0 4px 12px rgba(30, 181, 58, 0.1);
}

fieldset legend {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
    padding: 0 15px;
    margin-bottom: 20px;
    width: auto;
}

fieldset legend i {
    color: #1EB53A;
    margin-left: 8px;
    cursor: help;
}

fieldset hr {
    margin: 15px 0 25px;
    border: none;
    border-top: 2px solid #e9ecef;
}

/* Dependent Section */
.dependent {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.dependent:hover {
    border-color: #1EB53A;
    box-shadow: 0 4px 12px rgba(30, 181, 58, 0.1);
}

.remove-dependent {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.remove-dependent:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#add-dependent {
    background: linear-gradient(135deg, #1EB53A, #0047AB);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#add-dependent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.3);
}

/* Consent Section */
.consent-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #1EB53A;
    margin: 30px 0;
}

.consent-container .form-check-input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #1EB53A;
    margin-right: 12px;
    margin-top: 3px;
}

.consent-text {
    color: var(--text-dark, #2c3e50);
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-text a {
    color: #1EB53A;
    text-decoration: none;
    font-weight: 600;
}

.consent-text a:hover {
    color: #0047AB;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit-register {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1EB53A, #0047AB);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.btn-submit-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit-register:hover::before {
    left: 100%;
}

.btn-submit-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 181, 58, 0.4);
    background: linear-gradient(135deg, #179830, #003d8f);
}

.btn-submit-register:active {
    transform: translateY(0);
}

/* Validation Error Styling */
.text-danger {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #dc3545;
}

/* Keep asterisk inline within labels */
label .text-danger,
.form-label .text-danger,
.col-form-label .text-danger {
    display: inline;
    margin-top: 0;
    margin-left: 3px;
    font-size: inherit;
    vertical-align: baseline;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
}

/* Required Indicator */
.text-danger.required {
    color: #dc3545;
    font-weight: 600;
}

/* Tooltip Styling */
.title-tip {
    position: relative;
    cursor: help;
}

.title-tip i {
    color: #1EB53A;
    margin-left: 5px;
}

.title-tip[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.title-tip[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    z-index: 1000;
}

/* Alert Styling */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* ============================================
   Multi-Step Form Progress Indicator
   ============================================ */

.form-progress {
    margin-bottom: 40px;
    padding: 30px 0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #1EB53A, #0047AB);
    color: white;
    border-color: #1EB53A;
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.3);
    transform: scale(1.1);
}

.step-item.active .step-label {
    color: #1EB53A;
    font-weight: 700;
}

.step-item.completed .step-number {
    background: #1EB53A;
    color: white;
    border-color: #1EB53A;
}

.step-item.completed .step-label {
    color: #1EB53A;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 10px;
    margin-top: -35px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-connector.active {
    background: linear-gradient(90deg, #1EB53A, #0047AB);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

/* About You Fieldset - Two Column Layout */
.about-you-fieldset {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.about-you-fieldset::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1EB53A, #0047AB);
    z-index: 1;
}

.about-you-fieldset legend {
    background: white;
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid #1EB53A;
    color: #1EB53A;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.2);
}

.about-you-fieldset .form-group {
    margin-bottom: 20px;
}

.about-you-fieldset .form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.about-you-fieldset .form-label .text-danger {
    display: inline;
    margin-left: 2px;
    white-space: nowrap;
}

.about-you-fieldset .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.about-you-fieldset .form-control:focus {
    outline: none;
    border-color: #1EB53A;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 181, 58, 0.1);
}

.about-you-fieldset select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231EB53A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* About You — logical field groups (single column on mobile, paired on desktop) */
.register-about-you-fields {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.register-field-group {
    margin: 0;
}

.register-field-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1EB53A;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.register-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    align-items: start;
}

.register-field-group--password {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 18px 16px 6px;
}

.register-field-group--password .register-field-group-title {
    border-bottom-color: #dee2e6;
}

.register-field-row--password {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .register-field-row,
    .register-field-row--password {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-you-fieldset {
        padding: 20px 14px;
    }

    .register-form-card {
        padding: 24px 16px;
    }

    .register-field-group--password {
        padding: 16px 14px 4px;
    }
}

@media (max-width: 576px) {
    .register-form-section {
        padding: 48px 0;
    }

    .register-form-section > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .register-form-card {
        padding: 20px 12px;
        border-radius: 14px;
    }

    .about-you-fieldset legend {
        font-size: 1.05rem;
        padding: 8px 16px;
    }

    .form-progress {
        margin-bottom: 24px;
        padding: 16px 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-nav {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-nav:hover::before {
    left: 100%;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateX(-3px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #1EB53A, #0047AB);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #179830, #003d8f);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(30, 181, 58, 0.4);
}

.btn-nav i {
    transition: transform 0.3s ease;
}

.btn-prev:hover i {
    transform: translateX(-3px);
}

.btn-next:hover i,
.btn-submit:hover i {
    transform: translateX(3px);
}

/* ============================================
   Summary Section Styles
   ============================================ */

.summary-section {
    padding: 20px 0;
}

.summary-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-title i {
    color: #1EB53A;
    font-size: 1.8rem;
}

.summary-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #1EB53A;
}

.summary-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card-title i {
    color: #1EB53A;
    font-size: 1.2rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #6c757d;
    flex: 0 0 40%;
    font-size: 0.95rem;
}

.summary-value {
    color: #2c3e50;
    flex: 1;
    text-align: right;
    font-weight: 500;
    word-break: break-word;
}

.dependent-summary-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #1EB53A;
}

.dependent-summary-item strong {
    color: #1EB53A;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

.dependent-summary-item .summary-row {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.dependent-summary-item .summary-row:last-child {
    border-bottom: none;
}

/* Consent Section */
.consent-section {
    padding: 20px 0;
}

.consent-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consent-title i {
    color: #1EB53A;
    font-size: 1.8rem;
}

.consent-note {
    background: #e7f3ff;
    border-left: 4px solid #1EB53A;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.consent-note i {
    color: #1EB53A;
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.consent-note p {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-hero-section {
        min-height: 40vh;
        padding: 80px 0 40px;
    }
    
    .register-hero-section .hero-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .register-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .register-intro h2 {
        font-size: 2rem;
    }
    
    .register-intro .section-tag {
        font-size: 0.75rem;
        padding: 6px 18px;
        letter-spacing: 2px;
    }
    
    .register-form-card {
        padding: 30px 20px;
    }
    
    fieldset {
        padding: 20px 15px;
    }
    
    .section-spacing {
        padding: 60px 0;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-item {
        flex: 0 0 calc(20% - 8px);
        min-width: 70px;
    }

    .summary-title,
    .consent-title {
        font-size: 1.6rem;
    }

    .summary-card {
        padding: 20px 15px;
    }

    .summary-row {
        flex-direction: column;
        gap: 5px;
    }

    .summary-label {
        flex: 1;
    }

    .summary-value {
        text-align: left;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-connector {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .step-item {
        flex: 0 0 calc(20% - 4px);
        min-width: 60px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .summary-title,
    .consent-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .summary-card-title {
        font-size: 1.1rem;
    }
}

