/* ═══════════════════════════════════════════
   TIMILUC SRL — Contact Page
   Bento grid layout, contact cards,
   form styling, Google Maps dark filter.
   ═══════════════════════════════════════════ */


/* ─── PAGE WRAPPER ─── */
.tml-contact-page {
    background: var(--tml-bg);
    min-height: 100vh;
    padding-top: clamp(100px, 14vw, 140px);
}


/* ─── HERO ─── */
.tml-contact-hero {
    text-align: center;
    padding: 0 24px clamp(40px, 6vw, 60px);
}

.tml-contact-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--tml-gold);
    margin-bottom: 1rem;
}

.tml-contact-hero-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--tml-gold-dim);
}

.tml-contact-hero h1 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.tml-contact-hero p {
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    color: var(--tml-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.75;
    font-weight: 300;
}


/* ─── BENTO GRID ─── */
.tml-contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px clamp(60px, 10vw, 120px);
}

.tml-contact-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .tml-contact-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .tml-contact-bento {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ─── CONTACT INFO CARDS ─── */
.tml-contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 36px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.tml-contact-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.tml-contact-card-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 206, 209, 0.06);
    border: 1px solid rgba(0, 206, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tml-cyan);
    margin-bottom: 1.25rem;
    transition: all var(--tml-transition);
}

.tml-contact-card:hover .tml-contact-card-ico {
    background: rgba(0, 206, 209, 0.1);
    border-color: rgba(0, 206, 209, 0.2);
}

.tml-contact-card-ico svg {
    width: 20px;
    height: 20px;
}

.tml-contact-card h3 {
    font-family: var(--tml-font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 6px;
}

.tml-contact-card p {
    font-size: 0.82rem;
    color: var(--tml-muted);
    line-height: 1.7;
    font-weight: 300;
}

.tml-contact-card a {
    color: var(--tml-cyan);
    text-decoration: none;
    transition: color var(--tml-transition);
}

.tml-contact-card a:hover {
    color: var(--tml-cyan-dim);
}

.tml-contact-card-schedule {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tml-contact-card-schedule span {
    font-size: 0.75rem;
    color: var(--tml-txt);
    font-weight: 400;
}

.tml-contact-card-schedule span strong {
    color: var(--tml-white);
    font-weight: 600;
}


/* ─── CONTACT FORM ─── */
.tml-contact-form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 36px);
}

@media (min-width: 768px) {
    .tml-contact-form-card {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .tml-contact-form-card {
        grid-column: span 2;
    }
}

.tml-contact-form-title {
    font-family: var(--tml-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 24px;
}

.tml-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tml-contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 540px) {
    .tml-contact-form-row--half {
        grid-template-columns: 1fr 1fr;
    }
}

.tml-contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tml-contact-form-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tml-muted);
}

.tml-contact-form-input,
.tml-contact-form-select,
.tml-contact-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--tml-bg);
    color: var(--tml-white);
    font-size: 0.88rem;
    font-family: var(--tml-font-sans);
    transition: border-color var(--tml-transition), box-shadow var(--tml-transition);
}

.tml-contact-form-input:focus,
.tml-contact-form-select:focus,
.tml-contact-form-textarea:focus {
    outline: none;
    border-color: var(--tml-cyan);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.08);
}

.tml-contact-form-input::placeholder,
.tml-contact-form-textarea::placeholder {
    color: var(--tml-muted);
}

.tml-contact-form-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6a7a' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.tml-contact-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.tml-contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--tml-cyan);
    color: var(--tml-bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    cursor: pointer;
    transition: all var(--tml-transition);
    font-family: var(--tml-font-sans);
    align-self: flex-start;
}

.tml-contact-form-submit:hover {
    background: var(--tml-cyan-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 206, 209, 0.25);
}

.tml-contact-form-submit.is-sending {
    opacity: 0.6;
    pointer-events: none;
}

.tml-contact-form-submit.is-success {
    background: var(--tml-success);
}

/* Form success message */
.tml-contact-form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.tml-contact-form-success.show {
    display: block;
}

.tml-contact-form-success-ico {
    color: var(--tml-success);
    margin-bottom: 1rem;
}

.tml-contact-form-success h3 {
    font-family: var(--tml-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 0.5rem;
}

.tml-contact-form-success p {
    font-size: 0.85rem;
    color: var(--tml-muted);
    font-weight: 300;
}


/* ─── GOOGLE MAPS ─── */
.tml-contact-map {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 16px;
}

@media (min-width: 1024px) {
    .tml-contact-map {
        grid-column: span 3;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tml-contact-map {
        grid-column: span 2;
    }
}

.tml-contact-map iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

@media (min-width: 768px) {
    .tml-contact-map iframe {
        height: 400px;
    }
}


/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .tml-contact-card {
        padding: 20px;
    }

    .tml-contact-form-card {
        padding: 20px;
    }
}
