/* ================================================
   TEAM GLAM — Editorial Contact Form & Image Card Widget
   ================================================ */

.tg-csf-wrap {
    width: 100%;
    background-color: #f5f5f5;
    padding: 100px 60px;
    box-sizing: border-box;
}

.tg-csf-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
}

/* ── Enquiries Block ── */
.tg-csf-enquiries-block {
    margin-bottom: 56px;
}

.tg-csf-enquiries-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    color: #111111;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tg-csf-enquiries-email,
.tg-csf-enquiries-block .tg-csf-enquiries-email {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(20px, 2.2vw, 28px);
    color: #111111;
    margin: 0;
    line-height: 1.3;
}

.tg-csf-enquiries-email a,
.tg-csf-enquiries-block .tg-csf-enquiries-email a {
    color: inherit !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    transition: opacity 0.22s ease;
}

.tg-csf-enquiries-email a:hover {
    opacity: 0.65;
}

/* ── Form Heading ── */
.tg-csf-form-heading {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    color: #111111;
    margin: 0 0 36px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ── Form Controls & Fields Styling ── */
.tg-csf-form {
    width: 100%;
}

/* Dubsado Embed & iFrame Resizer */
.tg-csf-form iframe {
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

.tg-csf-field {
    margin-bottom: 24px;
    width: 100%;
}

.tg-csf-form label,
.wpforms-field-label,
.wpcf7-form p {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
}

.tg-csf-field .req,
.wpforms-required-label,
.wpcf7-required {
    color: #d9534f;
    margin-left: 2px;
}

/* Universal Inputs for CF7, WPForms & Demo Form */
.tg-csf-form input[type="text"],
.tg-csf-form input[type="email"],
.tg-csf-form input[type="tel"],
.tg-csf-form input[type="date"],
.tg-csf-form select,
.tg-csf-form textarea,
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="date"],
.wpforms-field select,
.wpforms-field textarea,
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap input[type="date"],
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    font-family: 'brandon-grotesque', sans-serif !important;
    font-size: 13px !important;
    color: #222222 !important;
    outline: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
}

.tg-csf-form input:focus,
.tg-csf-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
    border-color: #888888 !important;
}

.tg-csf-form input::placeholder,
.tg-csf-form textarea::placeholder {
    color: #aaaaaa;
}

/* Submit Button */
.tg-csf-submit-wrap {
    margin-top: 32px;
}

.tg-csf-submit,
.wpforms-submit,
.wpcf7-submit {
    display: inline-block !important;
    font-family: 'brandon-grotesque', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background-color: #000000 !important;
    padding: 14px 38px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease !important;
}

.tg-csf-submit:hover,
.wpforms-submit:hover,
.wpcf7-submit:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* ── Right Column: Image Card CTA ── */
.tg-csf-right {
    display: flex;
    width: 100%;
}

.tg-csf-card {
    position: relative;
    width: 100%;
    min-height: 720px;
    height: 100%;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 80px 40px;
    box-sizing: border-box;
    background-color: #111111;
}

.tg-csf-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.tg-csf-card-content {
    position: relative;
    z-index: 2;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
}

.tg-csf-card-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 32px;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.tg-csf-card-btn {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #000000;
    padding: 13px 32px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.tg-csf-card-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tg-csf-wrap {
        padding: 60px 30px;
    }
    .tg-csf-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .tg-csf-card {
        min-height: 520px;
        padding: 60px 30px;
    }
}

@media (max-width: 767px) {
    .tg-csf-wrap {
        padding: 40px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .tg-csf-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        width: 100% !important;
    }
    .tg-csf-enquiries-block {
        margin-bottom: 36px !important;
    }
    .tg-csf-enquiries-title,
    .tg-csf-form-heading {
        font-size: clamp(28px, 7.5vw, 38px) !important;
    }
    .tg-csf-card {
        padding: 48px 20px !important;
        min-height: 440px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .tg-csf-card-title {
        font-size: clamp(28px, 7.5vw, 40px) !important;
        margin-bottom: 24px !important;
    }
}
