/*
 * MDM Page Stylesheet
 * Template: template-mdm.php
 * Phase: 02 | Plan: 01
 * Generated: 2026-04-22
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --mdm-dark: #09090b;
    --mdm-card-dark: #121215;
    --mdm-blue: #221c85;
    --mdm-blue-light: #6366F1;
    --mdm-green: #10B981;
    --mdm-coral: #EF4444;
    --mdm-lavender-bg: #F0F0FA;
    --mdm-card-grey: #f8fafc;
    --mdm-text: #ffffff;
    --mdm-muted: #a1a1aa;
    --mdm-font-heading: 'Graphik', sans-serif;
    --mdm-font-body: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   GLOBAL TYPOGRAPHY
   ============================================================ */
.mdm-hero,
.mdm-partners,
.mdm-lifecycle,
.mdm-tech,
.mdm-compliance,
.mdm-methodology,
.mdm-contact-dark {
    font-family: var(--mdm-font-body);
}

h1,
h2,
h3,
h4,
.mdm-hero-cta,
.wpcf7-submit {
    font-family: var(--mdm-font-heading) !important;
}

/* ============================================================
   HERO SLIDER
   D-01, D-02, D-03
   ============================================================ */
.mdm-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.mdm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
}

.mdm-hero-slide.active {
    opacity: 1;
}

.mdm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #fff;
    /* Offset for header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.mdm-hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--mdm-font-heading);
}

.mdm-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 500px;
}

.mdm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mdm-blue);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s;
    align-self: flex-start;
}

.mdm-hero-cta:hover {
    background: var(--mdm-blue-light);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   STRATEGIC PLATFORM PARTNERS SECTION
   D-05, D-06, D-07
   ============================================================ */
.mdm-partners {
    background: var(--mdm-lavender-bg);
    padding: 80px 0;
    text-align: center;
}

.mdm-partners .section-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--mdm-blue);
    margin-bottom: 12px;
    display: block;
}

.mdm-partners h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 50px;
    font-family: var(--mdm-font-heading);
}

.mdm-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.mdm-partner-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mdm-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mdm-partner-card img {
    max-height: 36px;
    max-width: 140px;
    object-fit: contain;
}

.mdm-partner-card span {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ============================================================
   DEVICE LIFECYCLE SECTION
   D-08, D-09, D-10, D-11, D-12, D-13
   ============================================================ */
.mdm-lifecycle {
    background: #fff;
    padding: 100px 0;
}

.mdm-lifecycle .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.mdm-lifecycle .section-header-left .section-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--mdm-blue);
    margin-bottom: 12px;
    display: block;
}

.mdm-lifecycle .section-header-left h2 {
    font-size: 40px;
    font-weight: 600;
    font-family: var(--mdm-font-heading);
    line-height: 1.2;
}

.mdm-lifecycle .section-header-right {
    max-width: 400px;
    text-align: right;
    color: #5E5F61;
    font-size: 15px;
    line-height: 1.6;
}

.mdm-lifecycle-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.mdm-step-card {
    background: var(--mdm-card-grey);
    border-radius: 16px;
    padding: 30px 24px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mdm-step-card .step-number {
    position: absolute;
    top: -24px;
    right: 0px;
    font-size: 80px;
    font-weight: 200;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    margin: 0;
    z-index: 0;
}

.mdm-step-card .step-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.mdm-step-card .step-icon .icon-mask {
    width: 20px;
    height: 20px;
    background-color: #64748B;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    transition: background-color 0.3s ease;
}

.mdm-step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--mdm-font-heading);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.mdm-step-card p {
    font-size: 13px;
    color: #5E5F61;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Step 1 Active */
.mdm-step-card[data-step="1"].active {
    background: #f0f5ff;
    border-color: #c6dbff;
}

.mdm-step-card[data-step="1"].active .step-icon {
    background: #d9e6ff;
}

.mdm-step-card[data-step="1"].active .step-icon .icon-mask {
    background-color: #2b6df5;
}

.mdm-step-card[data-step="1"].active h3 {
    color: #2b6df5;
}

/* Step 2 Active */
.mdm-step-card[data-step="2"].active {
    background: #f8f4ff;
    border-color: #e5d5ff;
}

.mdm-step-card[data-step="2"].active .step-icon {
    background: #eadcff;
}

.mdm-step-card[data-step="2"].active .step-icon .icon-mask {
    background-color: #7c3aed;
}

.mdm-step-card[data-step="2"].active h3 {
    color: #7c3aed;
}

/* Step 3 Active */
.mdm-step-card[data-step="3"].active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mdm-step-card[data-step="3"].active .step-icon {
    background: #dcfce7;
}

.mdm-step-card[data-step="3"].active .step-icon .icon-mask {
    background-color: #059669;
}

.mdm-step-card[data-step="3"].active h3 {
    color: #059669;
}

/* Step 4 Active */
.mdm-step-card[data-step="4"].active {
    background: #fff1f2;
    border-color: #fecdd3;
}

.mdm-step-card[data-step="4"].active .step-icon {
    background: #ffe4e6;
}

.mdm-step-card[data-step="4"].active .step-icon .icon-mask {
    background-color: #e11d48;
}

.mdm-step-card[data-step="4"].active h3 {
    color: #e11d48;
}

.mdm-detail-bar {
    background: #f8fafc;
    color: #5E5F61;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px 30px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.mdm-detail-bar strong {
    color: #333;
}

.mdm-detail-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.mdm-detail-bar[data-active="1"] .dot {
    background: #2b6df5;
}

.mdm-detail-bar[data-active="2"] .dot {
    background: #7c3aed;
}

.mdm-detail-bar[data-active="3"] .dot {
    background: #059669;
}

.mdm-detail-bar[data-active="4"] .dot {
    background: #e11d48;
}

/* ============================================================
   TECHNICAL SOLUTIONS SECTION
   D-14, D-15, D-16, D-17
   ============================================================ */
.mdm-tech {
    position: relative;
    padding: 100px 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mdm-tech .container {
    position: relative;
    z-index: 1;
}

.mdm-tech-flex {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.mdm-tech-header {
    flex: 0 0 35%;
    max-width: 450px;
}

.mdm-tech .section-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--mdm-blue-light);
    margin-bottom: 12px;
    display: block;
}

.mdm-tech h2 {
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 0;
    font-family: var(--mdm-font-heading);
    line-height: 1.2;
}

.mdm-tech-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .mdm-tech-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .mdm-tech-header {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .mdm-tech h2 {
        margin-bottom: 20px;
    }
}

.mdm-tech-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.mdm-tech-card:hover,
.mdm-tech-card.active {
    background: var(--mdm-blue);
    border-color: var(--mdm-blue);
    transform: translateY(-2px);
}

.mdm-tech-card .card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
}

.mdm-tech-card .card-icon .icon-mask {
    width: 100%;
    height: 100%;
    background-color: #2b6df5;
    /* Default blue icon color based on screenshot */
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center left;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center left;
    transition: background-color 0.3s ease;
}

.mdm-tech-card:hover .card-icon .icon-mask {
    background-color: #ffffff;
    /* Turns white on blue background */
}

.mdm-tech-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--mdm-font-heading);
}

.mdm-tech-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.mdm-tech-card:hover p,
.mdm-tech-card.active p {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   COMPLIANCE & SECURITY SECTION
   D-18, D-19, D-20, D-21, D-22
   ============================================================ */
.mdm-compliance {
    background: #f8fafc;
    padding: 100px 0;
}

.mdm-compliance .section-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--mdm-blue);
    margin-bottom: 50px;
    display: block;
}

.mdm-compliance-wrap {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.mdm-compliance-left {
    flex: 0 0 608px;
}

.mdm-compliance-left h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--mdm-font-heading);
    color: #111827;
}

.mdm-compliance-left h2 .text-blue {
    color: var(--mdm-blue);
}

.mdm-compliance-left .body-text {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 30px;
}

.mdm-compliance-callout {
    background: #eff6ff;
    border-left: 3px solid var(--mdm-blue);
    padding: 20px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 40px;
    line-height: 1.6;
}

.mdm-compliance-callout p {
    margin: 0;
}

.mdm-compliance-badges {
    display: flex;
    gap: 16px;
}

.mdm-compliance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.mdm-compliance-badge svg {
    flex-shrink: 0;
}

.mdm-compliance-right {
    flex: 0 0 420px;
}

.mdm-compliance-card {
    background: #09090b;
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mdm-comp-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.2) 0%, rgba(0, 0, 0, 0) 70%), url('../images/mdm/mesh-bg.png') no-repeat center;
    background-size: cover;
    opacity: 0.8;
    z-index: 0;
}

.mdm-comp-card-content {
    position: relative;
    z-index: 1;
}

.mdm-comp-card-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--mdm-font-heading);
}

.mdm-comp-subtitle {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 40px;
}

.mdm-gauge-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
    border-radius: 50%;
}

.mdm-gauge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdm-gauge-inner {
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: #09090b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdm-gauge-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mdm-gauge-text .pct {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    font-family: var(--mdm-font-heading);
    line-height: 1;
}

.mdm-gauge-text .lbl {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 1px;
    font-weight: 600;
}

.mdm-comp-metrics {
    display: flex;
    gap: 12px;
}

.mdm-metric-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdm-metric-box .m-lbl {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.3;
}

.mdm-metric-box .m-val {
    font-size: 14px;
    color: var(--mdm-blue);
    font-weight: 600;
}

/* ============================================================
   METHODOLOGY SECTION (Think. Build. Operate.)
   D-23, D-24, D-25, D-26
   ============================================================ */
.mdm-methodology {
    padding: 100px 0;
    text-align: center;
}

.mdm-methodology .section-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--mdm-blue);
    margin-bottom: 12px;
    display: block;
}

.mdm-methodology h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--mdm-font-heading);
}

.mdm-methodology .section-subtext {
    font-size: 15px;
    color: #5E5F61;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.mdm-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.mdm-method-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    cursor: pointer;
}

.mdm-method-card.active {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: #fff;
    transform: translateY(-4px);
}

.mdm-method-card .method-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 24px;
    display: block;
    transition: color 0.3s ease;
}

.mdm-method-card .method-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mdm-method-card .method-icon .icon-mask {
    width: 20px;
    height: 20px;
    background-color: #64748b;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.mdm-method-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--mdm-font-heading);
    color: #0f172a;
    transition: color 0.3s ease;
}

.mdm-method-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.mdm-method-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mdm-method-tag {
    background: #f8fafc;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* -------------------------------------
   Active States per Card
-------------------------------------- */

/* Card 1 (THINK) */
.mdm-method-card[data-method="0"].active {
    border-top-color: #2B6DF5;
}

.mdm-method-card[data-method="0"].active .method-label {
    color: #2B6DF5;
}

.mdm-method-card[data-method="0"].active .method-icon {
    background: #eff6ff;
}

.mdm-method-card[data-method="0"].active .method-icon .icon-mask {
    background-color: #2B6DF5;
}

.mdm-method-card[data-method="0"].active h3 {
    color: #0f172a;
}

.mdm-method-card[data-method="0"].active .mdm-method-tag {
    background: #eff6ff;
    color: #2B6DF5;
}

/* Card 2 (BUILD) */
.mdm-method-card[data-method="1"].active {
    border-top-color: #8b5cf6;
}

.mdm-method-card[data-method="1"].active .method-label {
    color: #8b5cf6;
}

.mdm-method-card[data-method="1"].active .method-icon {
    background: #f3e8ff;
}

.mdm-method-card[data-method="1"].active .method-icon .icon-mask {
    background-color: #8b5cf6;
}

.mdm-method-card[data-method="1"].active h3 {
    color: #8b5cf6;
}

.mdm-method-card[data-method="1"].active .mdm-method-tag {
    background: #f3e8ff;
    color: #8b5cf6;
}

/* Card 3 (OPERATE) */
.mdm-method-card[data-method="2"].active {
    border-top-color: #10b981;
}

.mdm-method-card[data-method="2"].active .method-label {
    color: #10b981;
}

.mdm-method-card[data-method="2"].active .method-icon {
    background: #d1fae5;
}

.mdm-method-card[data-method="2"].active .method-icon .icon-mask {
    background-color: #10b981;
}

.mdm-method-card[data-method="2"].active h3 {
    color: #0f172a;
}

.mdm-method-card[data-method="2"].active .mdm-method-tag {
    background: #d1fae5;
    color: #10b981;
}

.mdm-method-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mdm-method-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mdm-method-dot.active {
    transform: scale(1.2);
}

.mdm-method-dot[data-method="0"].active {
    background: #2B6DF5;
}

.mdm-method-dot[data-method="1"].active {
    background: #8b5cf6;
}

.mdm-method-dot[data-method="2"].active {
    background: #10b981;
}

/* ============================================================
   CONTACT FORM SECTION
   D-27, D-28, D-29 — mirrors Smart Edge Devices dark contact pattern
   ============================================================ */
.mdm-contact-dark {
    background: #000;
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mdm-contact-dark::before {
    content: '';
    position: absolute;
    top: -19%;
    left: -8%;
    width: 600px;
    height: 800px;
    background: url('../images/smart-edge/Ellipse 1 .png') no-repeat center center;
    background-size: contain;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.mdm-contact-dark::after {
    content: '';
    position: absolute;
    top: -87px;
    right: 1%;
    width: 800px;
    height: 800px;
    background: url('../images/smart-edge/Ellipse 2.png') no-repeat center center;
    background-size: contain;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.mdm-contact-wrap {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.mdm-contact-left {
    width: 40%;
}

.mdm-contact-left h2 {
    font-size: 40px;
    font-weight: 500;
    line-height: 54px;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.mdm-contact-left p {
    color: var(--mdm-muted);
    font-size: 16px;
    line-height: 1.6;
}

.mdm-contact-right {
    width: 60%;
}

/* CF7 Custom Overrides for Dark Mode */
.mdm-contact-right .wpcf7 form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mdm-contact-right .wpcf7 form .form-group p {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.mdm-contact-right .wpcf7 form .form-group br {
    display: none;
}

.mdm-contact-right .wpcf7 form>div.form-row,
.mdm-contact-right .wpcf7 form>div,
.mdm-contact-right .wpcf7 form>p {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mdm-contact-right .wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Pseudo-labels using CF7 data-name */
.mdm-contact-right .wpcf7-form-control-wrap[data-name]::before {
    color: #a1a1aa;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="full_name"]::before {
    content: "FULL NAME";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="phone"]::before {
    content: "PHONE";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="email"]::before {
    content: "EMAIL ADDRESS";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="job_title"]::before {
    content: "JOB TITLE";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="company"]::before {
    content: "COMPANY";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="city"]::before {
    content: "CITY";
}

.mdm-contact-right .wpcf7-form-control-wrap[data-name="message"]::before {
    content: "MESSAGE";
}

/* Half-width fields */
.mdm-contact-right .wpcf7 form .form-row:has([data-name="full_name"]),
.mdm-contact-right .wpcf7 form .form-row:has([data-name="phone"]),
.mdm-contact-right .wpcf7 form .form-row:has([data-name="job_title"]),
.mdm-contact-right .wpcf7 form .form-row:has([data-name="company"]),
.mdm-contact-right .wpcf7 form p:has([data-name="full_name"]),
.mdm-contact-right .wpcf7 form p:has([data-name="phone"]),
.mdm-contact-right .wpcf7 form p:has([data-name="job_title"]),
.mdm-contact-right .wpcf7 form p:has([data-name="company"]) {
    width: calc(50% - 10px);
}

.mdm-contact-right label {
    display: none;
}

.mdm-contact-right input[type="text"],
.mdm-contact-right input[type="email"],
.mdm-contact-right input[type="tel"],
.mdm-contact-right textarea {
    width: 100%;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.mdm-contact-right input:focus,
.mdm-contact-right textarea:focus {
    border-color: var(--mdm-blue);
}

.mdm-contact-right textarea {
    min-height: 120px;
    resize: vertical;
}

.mdm-contact-right .wpcf7-submit {
    background: var(--mdm-blue);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.mdm-contact-right .wpcf7-submit:hover {
    background: var(--mdm-blue-light);
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Tablet wide — 1024px */
@media (max-width: 1024px) {
    .mdm-hero-content h1 {
        font-size: 48px;
    }
}

/* Tablet — 991px */
@media (max-width: 991px) {
    .mdm-lifecycle-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .mdm-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mdm-compliance-wrap {
        flex-direction: column;
    }

    .mdm-compliance-right {
        flex: auto;
        width: 100%;
    }

    .mdm-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mdm-lifecycle .section-header {
        flex-direction: column;
        gap: 20px;
    }

    .mdm-lifecycle .section-header-right {
        text-align: left;
        max-width: 100%;
    }

    .mdm-contact-wrap {
        flex-direction: column;
        gap: 30px;
    }

    .mdm-contact-left,
    .mdm-contact-right {
        width: 100%;
    }
}

/* Mobile — 767px */
@media (max-width: 767px) {
    .mdm-hero {
        height: 70vh;
    }

    .mdm-hero-content h1 {
        font-size: 36px;
    }

    .mdm-lifecycle-steps {
        grid-template-columns: 1fr;
    }

    .mdm-tech-grid {
        grid-template-columns: 1fr;
    }

    .mdm-method-grid {
        grid-template-columns: 1fr;
    }

    .mdm-partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mdm-contact-right .wpcf7 form .form-row:has([data-name]),
    .mdm-contact-right .wpcf7 form p:has([data-name]) {
        width: 100%;
    }

    .mdm-contact-dark::before,
    .mdm-contact-dark::after {
        display: none;
    }

    .mdm-partner-card {
        padding: 20px 10px;
    }

    .mdm-hero {
        .mdm-hero-slide {
            background-position: left !important
        }
    }

    .mdm-hero-content p {
        margin-bottom: 10px;
    }

}