/**
 * Rosewood Industrial Platform — Contact & RFQ
 *
 * @package Rosewood
 * @version 2.0.0
 */

/* ═══════ CONTACT HERO ═══════ */

.rw-contact-hero {
    background: #1C1C1E;
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.rw-contact-hero-accent {
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(230,51,41,0.08) 100%);
    pointer-events: none;
}

.rw-contact-hero .container { position: relative; z-index: 2; }

.rw-contact-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    flex-wrap: wrap;
}

.rw-contact-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.08;
}

.rw-contact-hero-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    max-width: 460px;
    line-height: 1.75;
    margin: 0;
}

/* Quick contact cards in hero */
.rw-contact-hero-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.rw-contact-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: all 0.25s ease;
    min-width: 260px;
}
.rw-contact-quick-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: #E63329;
}

.rw-contact-quick-card--muted { cursor: default; }
.rw-contact-quick-card--muted:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }

.rw-contact-quick-icon { font-size: 22px; flex-shrink: 0; }

.rw-contact-quick-card strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 3px;
}

.rw-contact-quick-card span {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

/* ═══════ MAIN LAYOUT ═══════ */

.rw-contact-main {
    padding: 64px 0 80px;
    background: #faf9f8;
}

.rw-contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 360px;
    gap: 56px;
    align-items: start;
}

/* ═══════ FORM COLUMN ═══════ */

.rw-contact-form-header {
    margin-bottom: 28px;
}

.rw-contact-form-intro {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #888;
    line-height: 1.75;
    margin: 10px 0 0;
    max-width: 520px;
}

.rw-contact-form-wrap {
    background: #fff;
    border: 1px solid #e8e6e3;
    padding: 40px;
}

/* FluentForms container overrides */
.rw-fluentform-wrap {
    /* Let FluentForms render naturally, just override colors */
}

.rw-fluentform-wrap .ff-el-input--label label {
    font-family: 'Outfit', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #999 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.rw-fluentform-wrap .ff-el-form-control {
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 11px 14px !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
}

.rw-fluentform-wrap .ff-el-form-control:focus {
    border-color: #E63329 !important;
    box-shadow: 0 0 0 1px #E63329 !important;
    outline: none !important;
}

.rw-fluentform-wrap .ff-btn-submit {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    background: #E63329 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 32px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.rw-fluentform-wrap .ff-btn-submit:hover {
    background: #cc2920 !important;
}

/* FluentForms file upload override */
.rw-fluentform-wrap .ff-el-file-upload {
    border: 2px dashed #ddd !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.rw-fluentform-wrap .ff-el-file-upload:hover {
    border-color: #E63329 !important;
}

/* FluentForms success message */
.rw-fluentform-wrap .ff-message-success {
    font-family: 'Outfit', sans-serif !important;
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    border-radius: 0 !important;
    padding: 20px !important;
    color: #166534 !important;
}

/* FluentForms select dropdown */
.rw-fluentform-wrap select.ff-el-form-control {
    -webkit-appearance: none !important;
    appearance: none !important;
    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' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

/* FluentForms two-column layout hint */
.rw-fluentform-wrap .ff-el-group {
    margin-bottom: 16px !important;
}

/* Native form notice */
.rw-native-form-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #92400e;
    line-height: 1.7;
}
.rw-native-form-notice code {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    font-size: 11px;
    word-break: break-all;
}

/* ═══════ SIDEBAR ═══════ */

.rw-contact-sidebar-inner {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Process steps card */
.rw-contact-process-card {
    background: #fff;
    border: 1px solid #e8e6e3;
    padding: 28px 24px;
}

.rw-contact-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f0efed;
}
.rw-contact-step:last-child { border-bottom: none; }

.rw-contact-step-num {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
}

.rw-contact-step-num--active {
    background: #E63329;
    border-color: #E63329;
    color: #fff;
}

.rw-contact-step-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1C1C1E;
    line-height: 1.4;
}

/* Location cards */
.rw-contact-location-card {
    background: #fff;
    border: 1px solid #e8e6e3;
    padding: 24px;
}

.rw-contact-location-card--dark {
    background: #1C1C1E;
    border-color: transparent;
}

.rw-contact-loc-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #1C1C1E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.rw-contact-loc-label--red { color: #E63329; }

.rw-contact-location-card address {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-style: normal;
    color: #555;
    line-height: 1.8;
    margin: 0;
}
.rw-contact-location-card--dark address { color: rgba(255,255,255,0.55); }

.rw-contact-loc-hours {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
}
.rw-contact-location-card--dark .rw-contact-loc-hours { color: rgba(255,255,255,0.25); }

/* Direct contact card */
.rw-contact-direct-card {
    background: #E63329;
    padding: 24px;
    text-align: center;
}

.rw-contact-direct-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.rw-contact-direct-phone {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    transition: opacity 0.2s ease;
}
.rw-contact-direct-phone:hover { opacity: 0.85; color: #fff; }

.rw-contact-direct-email {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.rw-contact-direct-email:hover { color: #fff; }

/* ═══════ MAP ═══════ */

.rw-contact-map {
    line-height: 0;
    border-top: 1px solid #e8e6e3;
}

.rw-contact-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(60%);
    transition: filter 0.4s ease;
}
.rw-contact-map:hover iframe { filter: grayscale(0%); }

/* ═══════ OVERRIDES ═══════ */

.page-template-contact-rfq .page-header,
.page-template-contact-rfq #page-header {
    display: none !important;
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 1024px) {
    .rw-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .rw-contact-sidebar-inner { position: static; }
}

@media (max-width: 768px) {
    .rw-contact-hero { padding: 48px 0; }
    .rw-contact-hero-inner { flex-direction: column; align-items: flex-start; }
    .rw-contact-hero-quick { width: 100%; }
    .rw-contact-quick-card { min-width: unset; }
    .rw-contact-form-wrap { padding: 28px 20px; }
    .rw-contact-map iframe { height: 280px; }
}
