/* Contact form - partials/contact-form.hbs
/* Selectors are prefixed with form#contactForm so they outrank the .gh-content
/* rules the form sits inside.
/*
/* Dark, like the rest of the site: a panel a shade lighter than the page, cream
/* text (#F3EBDD, as in overrides.css) and the brand gold (#d4af37, as in
/* vip-cta.css) for focus and the send button.
/* ---------------------------------------------------------- */

form#contactForm {
    width: 100%;
    max-width: 100%;
    margin: 32px 0 0;
    padding: 28px 26px 22px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, #1f2226 0%, #1a1c20 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    color: #F3EBDD;
    color-scheme: dark;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

form#contactForm .contactform-label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: #e6dccb;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

form#contactForm .contactform-input,
form#contactForm .contactform-select,
form#contactForm .contactform-textarea {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-width: none;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #5a5e67;
    border-radius: 10px;
    background-color: #2c2f35;
    box-shadow: none;
    box-sizing: border-box;
    color: #F3EBDD;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
}

form#contactForm .contactform-input::placeholder,
form#contactForm .contactform-textarea::placeholder {
    color: #9a948a;
}

/* Browser autofill paints its own light background; paint over it */
form#contactForm .contactform-input:-webkit-autofill,
form#contactForm .contactform-input:-webkit-autofill:hover,
form#contactForm .contactform-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2c2f35 inset;
    -webkit-text-fill-color: #F3EBDD;
    caret-color: #F3EBDD;
    transition: background-color 9999s;
}

form#contactForm .contactform-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

form#contactForm .contactform-select:invalid {
    color: #a8a195;
}

form#contactForm .contactform-select option {
    background: #2c2f35;
    color: #F3EBDD;
}

form#contactForm .contactform-textarea {
    min-height: 150px;
    margin-bottom: 8px;
    resize: vertical;
}

form#contactForm .contactform-input:hover,
form#contactForm .contactform-select:hover,
form#contactForm .contactform-textarea:hover {
    border-color: #7a7e87;
}

form#contactForm .contactform-input:focus,
form#contactForm .contactform-select:focus,
form#contactForm .contactform-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

form#contactForm #contactform-mandatory {
    margin: 0 0 8px;
    color: #9a9387;
    font-size: 13px;
}

form#contactForm #contactform-privacy {
    margin: 0 0 16px;
    color: #9a9387;
    font-size: 13px;
}

form#contactForm #contactform-privacy a {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Turnstile widget - it draws its own box; this only keeps it apart from the
/* privacy notice and the buttons. min-height stops the form jumping while it loads.
/* ---------------------------------------------------------- */

form#contactForm .cf-turnstile {
    min-height: 65px;
    margin: 0 0 16px;
}

/* Notification
/* ---------------------------------------------------------- */

form#contactForm #contactform-notification {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

form#contactForm #contactform-notification.is-info {
    display: block;
    border: 1px solid #3a3d44;
    background: #25282d;
    color: #e6dccb;
}

form#contactForm #contactform-notification.is-success {
    display: block;
    border: 1px solid rgba(88, 180, 110, 0.45);
    background: rgba(88, 180, 110, 0.12);
    color: #9fdcae;
}

form#contactForm #contactform-notification.is-error {
    display: block;
    border: 1px solid rgba(224, 96, 88, 0.5);
    background: rgba(224, 96, 88, 0.12);
    color: #f2a39c;
}

/* Buttons - send is solid gold like the VIP call to action; clear is an outline
/* ---------------------------------------------------------- */

form#contactForm .contactform-button {
    display: block;
    width: 100%;
    height: auto;
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.1s, opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

form#contactForm .contactform-button-save {
    border: 1px solid #d4af37;
    background: #d4af37;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
    color: #15171A;
}

form#contactForm .contactform-button-save:hover {
    border-color: #e2c25a;
    background: #e2c25a;
}

form#contactForm .contactform-button-save:disabled {
    opacity: 0.6;
    cursor: wait;
}

form#contactForm .contactform-button-clear {
    border: 1px solid #3a3d44;
    background: transparent;
    color: #c9c1b3;
}

form#contactForm .contactform-button-clear:hover {
    border-color: #6a6d74;
    color: #F3EBDD;
}

form#contactForm .contactform-button:active {
    transform: scale(0.99);
}

form#contactForm .contactform-button:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.6);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    form#contactForm {
        padding: 22px 18px 18px;
        border-radius: 12px;
    }
}
