/* ===== CONTACT PAGE – REDESIGN (dark theme) ===== */

/* Hide the com_contact component output (page is modules-only) */
.com-contact.contact {
    display: none !important;
}

/* ---- Page background ---- */
#g-features {
    background: transparent !important;
    padding: 3rem 2rem 2rem;
}

/* ---- Footer fix: outline-19 has 6 blocks not 5 ----
   child 1 = copyright, child 2 = logo, child 3 = spacer, child 4 = Impressum, child 5 = spacer, child 6 = back-to-top
   Global CSS (outline-15) hides child 4 and centers child 3 — override that here */
.outline-19 #g-footer .g-grid > .g-block:nth-child(3) {
    flex: 0 0 0px !important;
    width: 0 !important;
    overflow: hidden !important;
}
.outline-19 #g-footer .g-grid > .g-block:nth-child(4) {
    flex: 1 1 auto !important;
    width: auto !important;
    overflow: visible !important;
    text-align: center !important;
}
.outline-19 #g-footer .g-grid > .g-block:nth-child(5) {
    flex: 0 0 0px !important;
    width: 0 !important;
    overflow: hidden !important;
}
.outline-19 #g-footer .g-grid > .g-block:nth-child(6) {
    flex: 0 0 auto !important;
    width: auto !important;
}

/* ---- Let Gantry handle the grid naturally, just add vertical spacing ---- */
#g-features .g-grid {
    margin-bottom: 1.5rem;
}
#g-features .g-grid:last-child {
    margin-bottom: 0;
}

/* ---- Row 1: equal-height columns with gap ---- */
#g-features .g-grid:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 20px;
}
#g-features .g-grid:first-child > .g-block {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}
#g-features .g-grid:first-child > .g-block > .g-content {
    display: flex;
    flex: 1;
    width: 100%;
}
#g-features .g-grid:first-child > .g-block > .g-content > .platform-content {
    display: flex;
    flex: 1;
    width: 100%;
}
#g-features .g-grid:first-child > .g-block > .g-content > .platform-content > * {
    flex: 1;
    width: 100%;
}

/* ---- Shared card style ---- */
.contact-about,
.contact-map,
.contact-form-card {
    background: rgba(30, 28, 36, 0.92);
    border: 1px solid #3a3840;
    border-radius: 14px;
    padding: 2rem 2.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Override ConvertForms border/background (inline CSS variables) */
.contact-form-card #cf_1.convertforms {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ---- Form inputs ---- */
.contact-form-card .cf-label {
    color: #ccc;
}
.contact-form-card .cf-required-label {
    color: #e74c3c;
}
.contact-form-card .cf-input {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
    color: #222 !important;
    border-radius: 4px;
}
.contact-form-card .cf-input:focus {
    border-color: #ffd900 !important;
    outline: none;
    color: #111 !important;
    background: #fff !important;
}
.contact-form-card .cf-input::placeholder {
    color: #999;
}

/* ---- Send Message button ---- */
.contact-form-card .cf-control-group[data-type="submit"] .cf-btn {
    background: #ffd900 !important;
    color: #1a1a2e !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-family: 'Viga', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.contact-form-card .cf-control-group[data-type="submit"] .cf-btn:hover {
    background: #33313e !important;
    color: #ffd900 !important;
    transform: scale(1.03);
}

/* ---- About section ---- */
.contact-about {
    display: flex;
    flex-direction: column;
}

.contact-about h3 {
    color: #ffd900;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #ffd900;
    display: inline-block;
}

.contact-about p {
    color: #bbb;
    line-height: 1.75;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}
.contact-about p:last-child {
    margin-bottom: 0;
}

/* ---- Map section ---- */
.contact-map {
    text-align: center;
}
.contact-map h3 {
    color: #ffd900;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid #ffd900;
    display: inline-block;
}

.contact-map p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.contact-map iframe {
    margin-top: 0.4rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---- Disclaimer – subtle, no card ---- */
.contact-disclaimer {
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid #3a3840;
    padding: 1.8rem 1rem 0;
    margin-top: 0.5rem;
    text-align: center;
    box-shadow: none;
}

.contact-disclaimer h4 {
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 1rem 0;
}

.contact-disclaimer p,
.contact-disclaimer div {
    color: #777;
    font-size: 0.8rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-disclaimer address {
    font-style: normal;
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-disclaimer b,
.contact-disclaimer strong {
    color: #999;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #g-features {
        padding: 2rem 1rem 1.5rem;
    }

    .contact-about,
    .contact-map,
    .contact-form-card {
        padding: 1.4rem;
    }

    .contact-disclaimer {
        padding: 1.2rem 0.5rem 0;
    }
}
