/*
=================================================
contact-form.css
Contact Form Styling
Site: fishbucklake.com (staging)
Uses: 00-tokens.css design tokens
=================================================
*/

.contact-form-title {
    color: var(--fbl-gold);
    font-family: var(--fbl-font-heading);
    font-size: var(--fbl-bottom-size);
    font-weight: 700;
    margin-bottom: var(--fbl-space-sm);
    line-height: 1.2;
}

.contact-form-subtitle {
    color: var(--fbl-text-main);
    font-family: var(--fbl-font-body);
    font-size: var(--fbl-body-size);
    line-height: var(--fbl-line-height);
    max-width: 600px;
    margin: 0 auto;
}

/* Form */
.contact-form {
    background: var(--fbl-form-bg);
    border: 1px solid var(--fbl-border-light);
    border-left: 4px solid var(--fbl-gold);
    border-radius: var(--fbl-radius-lg);
    padding: var(--fbl-space-xl);
    max-width: 700px;
    margin: 0 auto;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--fbl-space-lg);
}

.form-group:last-of-type {
    margin-bottom: 0;
}

/* Labels */
.form-label {
    display: block;
    color: var(--fbl-gold);
    font-family: var(--fbl-font-heading);
    font-size: var(--fbl-font-md);
    font-weight: 600;
    margin-bottom: var(--fbl-space-xs);
}

.form-label .required {
    color: #ff6b6b;
}

.form-label .optional {
    color: var(--fbl-input-text);
    opacity: 0.6;
    font-weight: 400;
    font-size: var(--fbl-font-sm);
}

/* Input Fields */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--fbl-space-sm) var(--fbl-space-md);
    background: var(--fbl-input-bg);
    color: var(--fbl-input-text);
    border: 1px solid var(--fbl-border-color);
    border-radius: var(--fbl-radius);
    font-family: var(--fbl-font-body);
    font-size: var(--fbl-body-size);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    color: var(--fbl-input-text);
    outline: none;
    border-color: var(--fbl-gold);
    box-shadow: 0 0 0 3px var(--fbl-border-light);
    background: var(--fbl-input-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--fbl-input-text);
    opacity: 0.6;
}

/* Select Field */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6c48a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select option {
    background: var(--fbl-input-bg);
    color: var(--fbl-input-text);
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: var(--fbl-line-height);
}

/* Honeypot (hidden from humans) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit Button */
.form-submit {
    width: 100%;
    padding: var(--fbl-space-md) var(--fbl-space-lg);
    background: linear-gradient(135deg, var(--fbl-gold) 0%, #c4a96e 100%);
    color: var(--fbl-dark);
    border: none;
    border-radius: var(--fbl-radius);
    font-family: var(--fbl-font-heading);
    font-size: var(--fbl-font-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--fbl-topmenu-hover) 0%, var(--fbl-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--fbl-border-light);
}

.form-submit:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-loading {
    display: none;
}

.form-submit.loading .submit-text {
    display: none;
}

.form-submit.loading .submit-loading {
    display: inline;
}

/* Response Messages */
.form-response {
    margin-top: var(--fbl-space-lg);
    padding: var(--fbl-space-md);
    border-radius: var(--fbl-radius);
    font-family: var(--fbl-font-body);
    font-size: var(--fbl-body-size);
    text-align: center;
}

.form-response.success {
    background: rgba(70, 180, 80, 0.1);
    border: 1px solid #46b450;
    color: #46b450;
}

.form-response.error {
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid #dc3232;
    color: #dc3232;
}

.form-response.warning {
    background: rgba(255, 185, 0, 0.1);
    border: 1px solid #ffb900;
    color: #ffb900;
}

/* Validation Styles */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3232;
}

.form-input:valid:not(:placeholder-shown),
.form-select:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: #46b450;
}

/* Loading State */
.contact-form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        width: 95%;
        padding: var(--fbl-space-md) var(--fbl-space-sm);
    }

    .contact-form-header {
        margin-bottom: var(--fbl-space-lg);
        padding-bottom: var(--fbl-space-md);
    }

    .contact-form-title {
        font-size: var(--fbl-title-size);
    }

    .contact-form-subtitle {
        font-size: var(--fbl-font-md);
    }

    .contact-form {
        padding: var(--fbl-space-lg);
    }

    .form-group {
        margin-bottom: var(--fbl-space-md);
    }

    .form-label {
        font-size: var(--fbl-font-sm);
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: var(--fbl-font-md);
        padding: var(--fbl-space-xs) var(--fbl-space-sm);
    }

    .form-submit {
        font-size: var(--fbl-font-md);
        padding: var(--fbl-space-sm) var(--fbl-space-md);
    }
}

/* Print Styles */
@media print {
    .form-submit {
        display: none;
    }

    .contact-form {
        border: 1px solid #000;
    }
}

/* Accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--fbl-gold);
    outline-offset: 2px;
}

/*
==================================
DESIGN TOKENS USED:
==================================

Colors:
- --fbl-gold (labels, borders, button)
- --fbl-text-main (body text, subtitles)
- --fbl-form-bg (form container background)
- --fbl-input-bg (input/select/textarea background)
- --fbl-input-text (input/select/textarea text + placeholders)
- --fbl-border-color (input borders)
- --fbl-border-light (focus glow, shadows)
- --fbl-topmenu-hover (button hover)
- --fbl-dark (button text)

Typography:
- --fbl-font-heading (labels, button)
- --fbl-font-body (inputs, messages)
- --fbl-bottom-size (title)
- --fbl-title-size (mobile title)
- --fbl-body-size (inputs)
- --fbl-font-lg (button)
- --fbl-font-md (labels, mobile)
- --fbl-font-sm (optional text)

Spacing:
- --fbl-space-xl (large gaps)
- --fbl-space-lg (form padding)
- --fbl-space-md (input padding)
- --fbl-space-sm (small padding)
- --fbl-space-xs (tiny gaps)

Effects:
- --fbl-radius (inputs)
- --fbl-radius-lg (form container)
- --fbl-line-height (textarea)
*/

/* Contact Info Header */
.contact-info-header {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
    padding: 18px 30px;
    background: rgba(214, 196, 138, 0.1);
    border-radius: 8px;
    border: 2px solid var(--fbl-gold);
}

.contact-season {
    flex: 1;
}

.season-title {
    color: var(--fbl-gold);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: var(--fbl-font-heading);
}

.season-details p {
    color: var(--fbl-text-main);
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* First two lines grouped together */
.season-details p:nth-child(1),
.season-details p:nth-child(2) {
    margin-bottom: 2px;
}

/* Bigger gap after second line */
.season-details p:nth-child(2) {
    margin-bottom: 10px;
}

/* Rest are tight */
.season-details p:nth-child(n+3) {
    margin-bottom: 2px;
}

.season-details p:last-child {
    margin-bottom: 0;
}

.season-details strong {
    color: var(--fbl-gold);
    font-size: 14px;
}

.season-details a {
    color: var(--fbl-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.season-details a:hover {
    color: var(--fbl-white);
    text-decoration: underline;
}

/* Form intro text */
.contact-form-intro {
    text-align: center;
    margin-bottom: 25px;
}

.contact-form-intro p {
    color: var(--fbl-text-main);
    font-size: 16px;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-info-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    .season-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .season-details p {
        font-size: 13px;
    }
}