/* Form-Specific Styles */

/* Error Text */
.error-text {
    color: var(--error-color);
    font-size: 14px;
}

/* Form Section */
.form-section {
    padding: 16px;
    margin: 16px 8px;
}

/* Form Section Header */
.form-section h1 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
}

/* Registration Form Container */
.registration-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Form Label */
.form-label {
    font-size: 15px;
    color: var(--text-color);
    font-weight: bold;
}

/* Input Field */
.input-field {
    font-size: 15px;
    padding: 10px;
    margin-bottom: 12px;
    color: var(--text-color);
    border: 2px solid var(--primary-color-dark);
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Phone Input Group */
.phone-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-input .input-field {
    width: 100%;
}

/* Textarea Field */
textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--primary-color-dark);
}

/* Required Field Indicator */
.required {
    color: var(--error-color);
}

/* Bold Text in Form */
form span {
    font-weight: bold;
}

/* Overlay for Success Popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Success Popup */
.success-popup {
    background-color: var(--light-white);
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-top: 6px solid var(--secondary-color);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.success-popup h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.success-popup p {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.5;
}

.success-popup a {
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.success-popup a:hover {
    color: var(--secondary-color-dark);
}

/* Popup Button (Orange as default) */
.popup-button {
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 16px;
    margin: 8px 4px 0 4px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.popup-button:hover {
    background-color: var(--secondary-color-dark);
}

/* Secondary Button (Blue override) */
.secondary-button {
    background-color: var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color-dark);
}

/* Prevent scroll when popup is shown */
body.no-scroll {
    overflow: hidden;
}

/* Responsive Adjustments for Larger Screens */
@media (min-width: 768px) {
    .form-section {
        margin: 32px auto;
        padding: 32px;
    }

    .form-section h1 {
        font-size: 32px;
    }

    .registration-form {
        gap: 12px;
    }

    .form-label {
        font-size: 16px;
    }

    .input-field {
        font-size: 16px;
        padding: 12px;
        margin-bottom: 16px;
    }

    textarea.input-field {
        min-height: 100px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 12px;
    }

    .success-popup {
        padding: 30px 25px;
        max-width: 420px;
        border-radius: 12px;
    }

    .success-popup h2 {
        font-size: 24px;
    }

    .success-popup p {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .popup-button {
        font-size: 15px;
        padding: 10px 20px;
        margin: 10px 5px 0 5px;
    }
}
