/* Registration Progress Styling */
.registration-progress-wrapper {
    margin-bottom: 20px;
}

.step-indicator {
    margin-bottom: 12px;
}

.step-label-current {
    font-size: 12px;
    color: #666;
}

.step-label-current strong {
    font-weight: 700;
    color: #d4af37;
}

.registration-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.registration-progress span:first-child {
    font-size: 12px;
    color: #999;
}

.registration-progress div {
    display: flex;
    gap: 6px;
    align-items: center;
}

.registration-progress i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

.registration-progress i.active {
    background-color: #d4af37;
}

/* Legal Section Styling */
.gc-legal-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.legal-notice-box {
    padding: 12px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 15px;
}

.legal-notice-box h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #856404;
    font-weight: 600;
}

.legal-notice-box p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.terms-content-box {
    margin-bottom: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.terms-content-box details {
    cursor: pointer;
}

.terms-content-box summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f5f5f5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    user-select: none;
    transition: background-color 0.2s;
}

.terms-content-box summary:hover {
    background-color: #ebebeb;
}

.terms-content-box summary i {
    font-size: 11px;
    transition: transform 0.3s;
}

.terms-content-box details[open] summary i {
    transform: rotate(90deg);
}

.terms-body {
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}

.terms-body h4 {
    margin: 12px 0 6px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.terms-body p {
    margin: 0 0 10px 0;
}

.terms-body a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.terms-body a:hover {
    text-decoration: underline;
}

.consent-checkboxes {
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.consent-checkboxes .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
}

.consent-checkboxes .checkbox:last-of-type {
    margin-bottom: 0;
}

.consent-checkboxes input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
    accent-color: #d4af37;
}

.consent-checkboxes span {
    color: #333;
    line-height: 1.4;
}

.consent-checkboxes a,
.consent-checkboxes a.modal-link-button {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid #0066cc;
    transition: all 0.2s ease;
}

.consent-checkboxes a:hover,
.consent-checkboxes a.modal-link-button:hover {
    color: #004499;
    border-bottom-color: #004499;
    text-decoration: none;
}

.consent-helper-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background-color: #e8f4f8;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    font-size: 12px;
    color: #01579b;
}

.consent-helper-text i {
    font-size: 13px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-labels {
        gap: 10px;
    }

    .step-name {
        display: inline;
    }

    .step-label {
        padding: 10px 16px;
    }
}

/* Modal Styling - Fixed Overlay Positioning */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.modal-open {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    margin: auto;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background-color: #f9f9f9;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-button:not(.disabled):hover {
    color: #333;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.modal-close-button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.modal-close-button i {
    display: inline-block;
}

.modal-content-scroller {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.modal-content-scroller h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.modal-content-scroller h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 15px 0 8px 0;
}

.modal-content-scroller p {
    margin: 0 0 12px 0;
    text-align: justify;
}

.modal-content-scroller strong {
    font-weight: 600;
    color: #333;
}

.modal-content-scroller a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.modal-content-scroller a:hover {
    text-decoration: underline;
}

.modal-content-scroller ul,
.modal-content-scroller ol {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content-scroller li {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.modal-footer button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-footer button:not(.disabled) {
    background-color: #d4af37;
    color: white;
}

.modal-footer button:not(.disabled):hover {
    background-color: #c4a027;
}

.modal-footer button.disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}


/* Disabled checkbox styling */
.consent-checkboxes .checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

    .consent-checkboxes .checkbox.disabled a {
        pointer-events: auto;
        cursor: pointer;
    }

.consent-checkboxes input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.consent-checkboxes .checkbox.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Disabled button styling */
button[type="submit"].disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Disabled button styling */
button[type="submit"].disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .gc-legal-section {
        padding: 15px;
    }

    .terms-body {
        max-height: 200px;
        font-size: 12px;
    }

    .consent-checkboxes {
        padding: 12px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-content-scroller {
        padding: 15px;
        font-size: 13px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-footer {
        padding: 12px 15px;
    }
}
