/* ===================================================================
   FABRIXA CONTACT PAGE — append to brighthub-fabrixa/style.css
   =================================================================== */

/* Four-route grid: 4 columns on desktop, 2 on tablet, 1 on mobile */
.fbx-cn-routes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .fbx-cn-routes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .fbx-cn-routes-grid {
        grid-template-columns: 1fr;
    }
}

.fbx-cn-route {
    transition: border-color .18s ease, transform .18s ease;
}

.fbx-cn-route:hover {
    border-color: #E95121;
    transform: translateY(-2px);
}

.fbx-cn-route-cta {
    transition: color .15s ease;
}

.fbx-cn-route-cta:hover {
    color: #F0F0F0 !important;
}

/* ===================================================================
   QUOTE FORM
   =================================================================== */

.fbx-cn-form {
    background: #18202D;
    border: 1px solid rgba(240, 240, 240, 0.08);
    border-radius: 4px;
    padding: 48px 40px;
}

.fbx-cn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

@media (max-width: 720px) {
    .fbx-cn-form-row {
        grid-template-columns: 1fr;
    }
    .fbx-cn-form {
        padding: 32px 24px;
    }
}

.fbx-cn-form-field {
    display: flex;
    flex-direction: column;
}

.fbx-cn-form-field label {
    margin-bottom: 10px;
    color: #9AA4B2;
}

.fbx-cn-form-field input[type="text"],
.fbx-cn-form-field input[type="email"],
.fbx-cn-form-field input[type="tel"],
.fbx-cn-form-field input[type="number"],
.fbx-cn-form-field select,
.fbx-cn-form-field textarea {
    width: 100%;
    padding: 14px 18px;
    background: #0E141D;
    color: #F0F0F0;
    border: 1px solid rgba(240, 240, 240, 0.08);
    border-radius: 2px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color .15s ease, background .15s ease;
    box-sizing: border-box;
}

.fbx-cn-form-field input::placeholder,
.fbx-cn-form-field textarea::placeholder {
    color: #4F5663;
}

.fbx-cn-form-field input:focus,
.fbx-cn-form-field select:focus,
.fbx-cn-form-field textarea:focus {
    outline: none;
    border-color: #E95121;
    background: #18202D;
}

.fbx-cn-form-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Poppins', system-ui, sans-serif;
}

.fbx-cn-form-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9AA4B2 50%),
        linear-gradient(135deg, #9AA4B2 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 22px,
        calc(100% - 16px) 22px;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

/* Checkbox */
.fbx-cn-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #9AA4B2;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.fbx-cn-form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #E95121;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.fbx-cn-form-checkbox span {
    flex: 1;
}

/* ===================================================================
   CITY CARDS — Lisbon + Barcelona
   =================================================================== */

.fbx-cn-city {
    transition: border-color .18s ease, transform .18s ease;
}

.fbx-cn-city:hover {
    border-color: #E95121;
}

@media (max-width: 760px) {
    .fbx-cn-city {
        padding: 36px 28px !important;
    }
    .fbx-cn-city > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 4px 0 !important;
    }
    /* Where-we-are 2-col grid stacks */
    .fbx-page-contact .fbx-section > .fbx-container > div[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================================================
   SLA TIMELINE — already uses .fbx-tile, no extra rules needed
   except the responsive stack
   =================================================================== */

@media (max-width: 900px) {
    .fbx-page-contact .fbx-section > .fbx-container > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}