* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 50%, #0f2612 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px 0;
}

/* Government Header */
.gov-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c5530;
    color: white;
    padding: 8px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.gov-header .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gov-flag {
    width: 20px;
    height: 15px;
    background: url('../../assets/images/flag.png') no-repeat center;
    background-size: cover;
    border-radius: 2px;
}

.language-selector {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Animation Keyframes */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Background Elements */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 1;
}

.map-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../assets/images/login-bg.png') no-repeat center;
    background-size: cover;
    opacity: 0.4;
}

/* Main Container */
.register-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 60px;
    animation: fadeInScale 0.8s ease-out;
}

/* Logo Section */
.register-logo {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.register-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.register-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grid Layout for Form Fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-input, .form-select {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    color: #495057;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #007F40;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 127, 64, 0.2);
}

.form-input::placeholder {
    color: #adb5bd;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #ffffff;
    color: #495057;
}

/* Password Group */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFC80F;
    border: none;
    border-radius: 6px;
    color: #000000;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
    z-index: 10;
}

.password-toggle:hover {
    background: #ffb300;
    color: #000000;
}

.password-group .form-input {
    padding-right: 70px;
}

/* Terms and Conditions */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007F40;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.terms-group a {
    color: #6bcf7f;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.terms-group a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Button Container */
.button-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-container.single {
    justify-content: center;
}

.button-container.double {
    justify-content: space-between;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #FFC80F 0%, #ffb300 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffb300 0%, #FFC80F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 200, 15, 0.3);
}

/* Secondary Button */
.btn-cancel {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step.active .step-number {
    background: #FFC80F;
    color: #000;
}

.step.inactive .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

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

.step-line {
    width: 50px;
    height: 2px;
    background: #e9ecef;
}

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

/* Hidden steps */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Register Button */
.register-button {
    background: linear-gradient(135deg, #FFC80F 0%, #ffb300 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    grid-column: 1 / -1;
}

.register-button:hover {
    background: linear-gradient(135deg, #ffb300 0%, #FFC80F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 200, 15, 0.3);
}

.register-button:active {
    transform: translateY(0);
}

.register-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    color: #ffffff;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.login-link a {
    color: #00e272;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #005a2d;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #6bcf7f;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.strength-weak { color: #ff6b6b; }
.strength-medium { color: #ffd93d; }
.strength-strong { color: #6bcf7f; }

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .register-title {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .register-button {
    background: #666;
    cursor: not-allowed;
}

/* Field Validation */
.form-input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.field-error {
    color: #ff6b7a;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 1px;
}

.radio-option {
    position: relative;
    flex: 1;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: rgba(255, 200, 15, 0.2);
    border-color: #FFC80F;
    box-shadow: 0 0 0 1px rgba(255, 200, 15, 0.3);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label .radio-circle {
    border-color: #FFC80F;
    background: #FFC80F;
}

.radio-option input[type="radio"]:checked + .radio-label .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.radio-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* Government Info Popup */
.gov-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.gov-popup {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: #4a6fa5;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: none;
}

.gov-popup-header {
    background: #3d5a91;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-popup-header-icon {
    font-size: 14px;
    line-height: 1;
}

.gov-popup-header-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.gov-popup-content {
    padding: 0;
    display: flex;
}

.gov-info-section {
    flex: 1;
    padding: 20px;
    color: white;
}

.gov-info-section:first-child {
    background: #4a6fa5;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.gov-info-section:last-child {
    background: #5a7fb5;
}

.gov-info-icon {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 8px;
}

.gov-info-title {
    color: white;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.gov-info-text {
    color: white;
    font-size: 11px;
    line-height: 1.3;
}

.gov-domain {
    color: #ffc709;
    font-weight: bold;
}

@media (max-width: 768px) {
    .gov-popup {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        transform: none;
        top: 50px;
    }

    .gov-popup-content {
        flex-direction: column;
    }
}
