/* forms.css - Styles for form pages */

.form-page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.form-hero {
    text-align: center;
    margin-bottom: 25px; /* was: 50px -> 50% less distance */
}

.form-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;        /* use normal white */
}

.form-hero .subtitle {
    font-size: 1.2em;
    color: #bbb;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.form-hero .icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(168, 192, 255, 0.3));
}

/* Form Container */
.form-container {
    background: transparent; /* was: rgba(255, 255, 255, 0.05); */
    backdrop-filter: none;   /* remove blur so background stays crisp */
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: none;  /* was: '' */
}

/* Form Styles */
.action-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ddd;
    font-size: 1em;
    font-weight: 500;
}

/* Inline layout for terms & conditions checkbox */
.form-group.terms-consent label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.form-group.terms-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #cccccc; /* light gray */
}

/* Make the Terms & Conditions link gray instead of jasmine */
.form-group.terms-consent a {
    color: #cccccc;              /* gray */
    text-decoration: underline;  /* optional: keep link obvious */
}

.form-group.terms-consent a:hover {
    color: #ffffff;              /* white on hover, if desired */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1.05em;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(168, 192, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 192, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 28px;
    background: #cccccc;              /* light gray instead of gradient */
    border: none;
    border-radius: 10px;
    color: #000;                      /* darker text for contrast */
    font-size: 1.15em;
    font-weight: 600;
    font-family: Directive-Four, sans-serif; /* match global font */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: #e0e0e0;              /* slightly lighter on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:disabled:hover {
    box-shadow: none;
}

.btn-icon {
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    text-decoration: none;
    font-size: 1.05em;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    gap: 15px;
}

.back-link::before {
    content: '←';
    font-size: 1.3em;
}

/* Success/Error Message */
.success-message,
.error-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.success-message {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.success-message.show,
.error-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.success-content,
.error-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.success-icon,
.error-icon {
    font-size: 2em;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#successText,
#errorText {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
    line-height: 1;
    margin-left: auto;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-page-content {
        padding: 20px 15px 60px;
    }

    .form-hero h1 {
        font-size: 2.2em;
    }

    .form-hero .icon {
        font-size: 3em;
    }

    .form-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .form-hero h1 {
        font-size: 1.8em;
    }

    .form-container {
        padding: 25px 15px;
    }
}