/**
 * Contact Page Styles
 *
 * Single-column centered form matching the FISHOOZ checkout
 * form field styling. Mobile-first responsive layout.
 */

/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */

.contact-page {
    padding: 32px 0 64px;
    background: var(--sky-pale);
    min-height: 60vh;
}

@media (min-width: 768px) {
    .contact-page {
        padding: 48px 0 80px;
    }
}

/* ==========================================================================
   CENTERED CONTAINER
   ========================================================================== */

.contact-container {
    max-width: 750px;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 8px;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 34px;
    }
}

.contact-subtitle {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   ALERT BANNERS
   ========================================================================== */

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-alert p {
    margin: 0 0 4px;
}

.contact-alert p:last-child {
    margin-bottom: 0;
}

/* Success */
.contact-alert--success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: #2E7D32;
}

.contact-alert--success svg {
    stroke: #2E7D32;
}

/* Error */
.contact-alert--error {
    background: #FDECEC;
    border: 1px solid #F5C6C6;
    color: #C62828;
}

.contact-alert--error svg {
    stroke: #C62828;
}

/* ==========================================================================
   FORM CARD
   ========================================================================== */

.contact-form {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 36px 32px;
    }
}

/* Re-use checkout .fz-field and .fz-input styles (already global via checkout.css) */
.contact-form .fz-field--full {
    margin-bottom: 20px;
}

.contact-form .fz-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form .fz-field label .required {
    color: var(--coral-accent);
    text-decoration: none;
}

.contact-form .fz-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ocean-pale);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.contact-form .fz-input:focus {
    outline: none;
    border-color: var(--ocean-mid);
    box-shadow: 0 0 0 3px rgba(46, 151, 203, 0.15);
}

.contact-form .fz-input::placeholder {
    color: var(--text-light);
}

/* Select dropdown arrow */
.contact-form select.fz-input,
.contact-form .fz-select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A7A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Textarea */
.contact-form textarea.fz-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* ==========================================================================
   CONDITIONAL FIELD GROUPS
   ========================================================================== */

.contact-conditional {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.contact-conditional.is-visible {
    opacity: 1;
}

/* When using inline style display:none for initial state,
   JS removes it and adds is-visible class */

/* ==========================================================================
   RECAPTCHA
   ========================================================================== */

.contact-recaptcha {
    margin-bottom: 20px;
}

/* ==========================================================================
   SUBMIT BUTTON
   ========================================================================== */

.contact-submit {
    margin-top: 4px;
}

.btn--ocean {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    box-shadow: var(--shadow-button-ocean);
    transition: all 0.3s ease;
}

.btn--ocean:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 107, 147, 0.4);
}

.btn--ocean:active {
    transform: translateY(0);
}

/* ==========================================================================
   GOOGLE PLACES AUTOCOMPLETE (reuse checkout styling)
   ========================================================================== */

.contact-form .pac-container {
    border-radius: var(--radius-md);
    border: 1px solid var(--ocean-pale);
    box-shadow: var(--shadow-md);
    margin-top: 4px;
    font-family: var(--font-display);
    z-index: 10000;
}
