/* iFSP Contact Page - Unified Responsive Styles */

/* Base styles for all devices */
.contact-content {
    background: linear-gradient(135deg, #0d192c 0%, #0d192c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    border-bottom: 2px solid white;
}

.contact-container {
    margin: 0 auto;
    text-align: center;
}

.title-accent {
    color: #c25b31;
}

/* Contact Button Base Styles */
.contact-method {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #c25b31;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
    fill: #000000;
}

.contact-method-title {
    font-weight: 600;
    color: #ffffff;
}

.contact-method-info {
    color: #c25b31;
    font-weight: 500;
}

.contact-method-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Animation styles */
.contact-method {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-method:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-method:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-method:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Styles (1025px and up) */
@media screen and (min-width: 1025px) {
    .contact-content {
        padding: 120px 20px 80px;
    }

    .contact-container {
        max-width: 800px;
    }

    .contact-title {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .contact-description {
        font-size: 1.3rem;
        margin-bottom: 4rem;
        color: rgba(255, 255, 255, 0.8);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

    /* Desktop Contact Methods Container */
    .contact-methods {
        display: grid;
        grid-template-columns: repeat(3, minmax(280px, 320px));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        justify-content: center;
    }

    .contact-method {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .contact-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .contact-icon svg {
        width: 40px;
        height: 40px;
    }

    .contact-method-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .contact-method-info {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .contact-method-description {
        font-size: 0.95rem;
    }
}

/* Tablet Styles (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .contact-content {
        padding: 100px 30px 60px;
    }

    .contact-container {
        max-width: 700px;
    }

    .contact-title {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .contact-description {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        color: rgba(255, 255, 255, 0.8);
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

    /* Tablet Contact Methods Container */
    .contact-methods {
        display: grid;
        grid-template-columns: repeat(2, minmax(250px, 300px));
        gap: 1.5rem;
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
        justify-content: center;
    }

    .contact-method {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .contact-method:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .contact-icon svg {
        width: 35px;
        height: 35px;
    }

    .contact-method-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .contact-method-info {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .contact-method-description {
        font-size: 0.9rem;
    }
}

/* Mobile Styles (768px and below) */
@media screen and (max-width: 768px) {
    .contact-content {
        align-items: flex-start;
        padding: 80px 15px 40px;
        min-height: auto;
    }

    .contact-container {
        width: 100%;
        max-width: 100%;
    }

    .contact-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #ffffff;
    }

    .contact-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.8);
        padding: 0 10px;
        line-height: 1.6;
    }

    /* Mobile Contact Methods Container */
    .contact-methods {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 100%;
        padding: 0 10px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-method {
        border-radius: 16px;
        padding: 1.5rem 1.2rem;
        width: 100%;
        max-width: 350px;
        min-height: auto;
    }

    .contact-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
    }

    .contact-icon svg {
        width: 32px;
        height: 32px;
    }

    .contact-method-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .contact-method-info {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .contact-method-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Small Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    .contact-content {
        padding: 70px 10px 30px;
    }

    .contact-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        padding: 0 5px;
    }

    .contact-methods {
        gap: 0.8rem;
        padding: 0 5px;
    }

    .contact-method {
        padding: 1.3rem 1rem;
        max-width: 320px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon svg {
        width: 30px;
        height: 30px;
    }

    .contact-method-title {
        font-size: 1.3rem;
    }

    .contact-method-info {
        font-size: 0.95rem;
    }

    .contact-method-description {
        font-size: 0.8rem;
    }
}
/* ============================================================
   SEND US AN EMAIL
   The enquiry form. It posts through the sealed /manage transport —
   see Contact/contact.js — and has no endpoint of its own.
   ============================================================ */

.contact-form-section {
    padding: 6.25rem 0;
    background: #fef9f3;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    align-items: start;
    max-width: 62.5rem;
    margin: 0 auto;
}

.contact-form-title {
    font-family: 'Termina', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 300;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.contact-form-lead {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #ffffff;
    border: 0.0625rem solid rgba(0, 35, 31, 0.15);
    border-radius: 0.25rem;
    padding: 0.8125rem 0.875rem;
    color: #00231f;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 8.125rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9aa4ad;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c25b31;
}

/* The public .btn is white-on-transparent, which is right on a photograph and
   invisible on this cream. Restated here rather than changed there: every
   other .btn on the site sits on a dark hero. */
.contact-form .submit-btn {
    align-self: flex-start;
    margin-top: 0.375rem;
    background: #00231f;
    color: #ffffff;
    border: 0.0625rem solid #00231f;
}

.contact-form .submit-btn:hover:not(:disabled) {
    background: #c25b31;
    border-color: #c25b31;
}

/* Set by contact.js once the name and a plausible email are in. A quiet nudge
   that the form is ready to send, not a validity claim — the server decides. */
.contact-form .submit-btn.is-ready {
    background: #c25b31;
    border-color: #c25b31;
}

.contact-form .submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* aria-live region, created by contact.js if the markup does not carry one. */
.contact-form .form-status {
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    color: #5a6c7d;
}

.contact-form .form-status[data-status="success"] { color: #2f7d55; }

.contact-form .form-status[data-status="error"]   { color: #b3453f; }

/* Bot trap.
   Visually gone WITHOUT display:none or visibility:hidden, both of which the
   better scrapers test for and skip. Screen readers are kept out by the
   aria-hidden on the wrapper and the negative tabindex on the inputs. */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 0.0625rem;
    height: 0.0625rem;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Labels for the fields that show a placeholder instead. A placeholder is not
   an accessible name — it disappears the moment somebody types. */
.sr-only {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: 3.75rem 0;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
