@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* ==========================================================================
   Project Inquiry Lead Section Styles ("Got a Project in Mind?")
   (Fully Responsive Desktop, Laptop, Tablet & Mobile Implementation)
   ========================================================================== */

.spx-lead-section {
    background-color: #080C14;
    padding: 80px 0;
    width: 100%;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
    position: relative;
}

.spx-lead-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

.spx-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Left Column */
.spx-lead-left {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spx-lead-heading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 51px;
    color: #fff;
    margin: 0 0 16px 0;
    max-width: 470px;
}

.spx-lead-subtext {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #B5B7BD;
    margin: 0 0 64px 0;
    max-width: 500px;
}

.spx-lead-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 520px;
    height: auto;
    gap: 9px;
    margin-top: 0;
}

.spx-cert-red-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 100px;
    background-color: #E3001D;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.spx-cert-img {
    max-width: 85%;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Right Column: Form Container */
.spx-lead-right {
    background-color: #0F172A;
    border-radius: 1px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    min-height: auto;
    box-sizing: border-box;
}

.spx-lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spx-form-group {
    position: relative;
    width: 100%;
}

.spx-floating-placeholder {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    color: #5E6470;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.spx-floating-placeholder--textarea {
    top: 18px;
    transform: none;
}

.spx-star {
    color: #E3001D;
    margin-left: 2px;
}

.spx-form-input:focus+.spx-floating-placeholder,
.spx-form-input:not(:placeholder-shown)+.spx-floating-placeholder,
.spx-form-textarea:focus+.spx-floating-placeholder,
.spx-form-textarea:not(:placeholder-shown)+.spx-floating-placeholder {
    opacity: 0;
    visibility: hidden;
}

.spx-form-input,
.spx-form-textarea,
.spx-form-select {
    width: 100%;
    height: 56px;
    background-color: #0f172a;
    border: 1.5px solid #5E6470;
    border-radius: 1px;
    padding: 0 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    color: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.spx-form-textarea {
    height: auto;
    min-height: 110px;
    padding-top: 16px;
    resize: vertical;
}

.spx-form-input::placeholder,
.spx-form-textarea::placeholder,
.spx-form-select::placeholder {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    color: #91949d;
}

.spx-form-input:focus,
.spx-form-textarea:focus,
.spx-form-select:focus {
    border-color: #E3001D;
    box-shadow: 0 0 0 2px rgba(227, 0, 29, 0.2);
}

/* Confidentiality Badge */
.spx-lead-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 17px;
    color: #Ffe09c;
    font-weight: 600;
}

.spx-lead-badge svg {
    flex-shrink: 0;
}

/* Checkboxes */
.spx-lead-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
}

.spx-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: #94A3B8;
    user-select: none;
}

.spx-checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #475569;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.spx-checkbox-container input[type="checkbox"]:checked {
    background-color: #E3001D;
    border-color: #E3001D;
}

.spx-checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.spx-checkbox-text {
    flex-grow: 1;
    font-size: 16px;
    line-height: 19px;
    color: #fff;
    font-weight: 500;
}

/* Submit Button Pill */
.spx-lead-submit-btn {
    background-color: #1E293B;
    color: #94A3B8;
    border: 2px solid #1E293B;
    border-radius: 999px;
    padding: 14px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.spx-lead-submit-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #E3001D;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Laptop View (1200px - 1320px) */
@media (max-width: 1320px) {
    .spx-lead-grid {
        gap: 40px;
    }
}

/* Medium Laptop View (1025px - 1199px) */
@media (max-width: 1199px) and (min-width: 1025px) {
    .spx-lead-grid {
        gap: 30px;
    }

    .spx-lead-heading {
        font-size: 40px;
        line-height: 44px;
    }

    .spx-lead-subtext {
        margin-bottom: 40px;
    }

    .spx-lead-right {
        padding: 30px;
    }
}

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .spx-lead-section {
        padding: 60px 0;
    }

    .spx-lead-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        justify-items: center;
    }

    .spx-lead-left {
        align-items: center;
        text-align: center;
        max-width: 650px;
    }

    .spx-lead-heading {
        font-size: 36px;
        line-height: 1.2;
        max-width: 100%;
        margin: 0 auto 16px auto;
        text-align: center;
    }

    .spx-lead-subtext {
        text-align: center;
        margin: 0 auto 32px auto;
        max-width: 100%;
    }

    .spx-lead-cert-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 520px;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .spx-lead-right {
        padding: 36px 30px;
        max-width: 650px;
        width: 100%;
    }
}

/* Mobile View (<= 767px) */
@media (max-width: 767px) {
    .spx-lead-section {
        padding: 48px 0;
    }

    .spx-lead-container {
        padding: 0 16px;
    }

    .spx-lead-grid {
        gap: 36px;
        justify-items: stretch;
    }

    .spx-lead-left {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }

    .spx-lead-heading {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 14px;
        text-align: left;
    }

    .spx-lead-subtext {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 24px;
        text-align: left;
    }

    .spx-lead-cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .spx-cert-red-box {
        width: 100%;
        min-height: auto;
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .spx-cert-img {
        max-height: 40px;
        max-width: 85%;
    }

    .spx-lead-right {
        padding: 24px 16px;
        border-radius: 6px;
        max-width: 100%;
    }

    .spx-lead-form {
        gap: 16px;
    }

    .spx-form-input,
    .spx-form-textarea,
    .spx-form-select {
        height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }

    .spx-floating-placeholder {
        left: 14px;
        font-size: 15px;
    }

    .spx-floating-placeholder--textarea {
        top: 14px;
    }

    .spx-lead-badge {
        font-size: 13px;
        gap: 8px;
        line-height: 1.35;
    }

    .spx-checkbox-container {
        font-size: 13px;
        gap: 10px;
    }

    .spx-checkbox-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .spx-lead-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Extra Small Mobile View (<= 480px) */
@media (max-width: 480px) {
    .spx-lead-section {
        padding: 36px 0;
    }

    .spx-lead-heading {
        font-size: 24px;
        line-height: 1.25;
    }

    .spx-lead-subtext {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .spx-lead-cert-grid {
        gap: 6px;
    }

    .spx-cert-red-box {
        padding: 6px;
    }

    .spx-cert-img {
        max-height: 32px;
    }

    .spx-lead-right {
        padding: 20px 14px;
    }

    .spx-lead-badge {
        font-size: 12px;
    }

    .spx-checkbox-text {
        font-size: 12px;
        line-height: 1.35;
    }
}

/* ── Budget Dropdown (custom-select) ── */
.spx-form-group--select {
    position: relative;
}

.spx-form-group--select .custom-select {
    position: relative;
}

.spx-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: transparent;
    color: inherit;
    padding-right: 36px !important;
}

.spx-form-select option {
    color: #0a0a0a;
    background: #fff;
}

/* Arrow icon */
.spx-form-group--select .custom-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    pointer-events: none;
}

/* Hide the <i class="icon-budget"> — arrow is via ::after */
.spx-form-group--select .icon-budget {
    display: none;
}

/* ── Validation States (set by contact_valiation_new-1.js) ── */
.spx-form-input.error,
.spx-form-textarea.error,
.spx-form-select.error {
    border-color: #E3001D !important;
    box-shadow: 0 0 0 2px rgba(227, 0, 29, 0.18) !important;
    color: #fff;
}

.spx-form-input.success,
.spx-form-textarea.success,
.spx-form-select.success {
    border-color: #fff !important;
    background-color: transparent !important;
}

/* Shake animation on error */
@keyframes spx-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}

.spx-form-input.error,
.spx-form-textarea.error,
.spx-form-select.error {
    animation: spx-shake 0.35s ease;
}