/* ========================================
   Home Contact Form Section
   Scoped under .sv-home-contact
   Light theme, centered card with 2-col grid
   ======================================== */

/* --- Reset: Override global main.css leaks --- */
.sv-home-contact h2,
.sv-home-contact h3,
.sv-home-contact h4,
.sv-home-contact label {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.sv-home-contact a,
.sv-home-contact button,
.sv-home-contact span,
.sv-home-contact p,
.sv-home-contact img,
.sv-home-contact input,
.sv-home-contact textarea,
.sv-home-contact select {
    transition: none;
}

.sv-home-contact a,
.sv-home-contact a:hover,
.sv-home-contact a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.sv-home-contact p {
    margin-bottom: 0;
}

.sv-home-contact img {
    max-width: 100%;
}

.sv-home-contact button::before,
.sv-home-contact button::after {
    content: none !important;
    display: none !important;
}
/* --- End Reset --- */


/* --- Section --- */
.sv-home-contact {
    padding: 90px 0 80px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}


/* --- Header --- */
.sv-hc-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.sv-hc-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e64c29;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.sv-hc-subtitle-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.sv-hc-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 0;
}


/* --- Form Card --- */
.sv-contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 44px 40px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* --- Form Grid --- */
.sv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.sv-contact-grid .sv-field-full {
    grid-column: 1 / -1;
}


/* --- Field Wrapper --- */
.sv-contact-field {
    position: relative;
}

.sv-contact-field label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 15px;
    font-weight: 400;
    color: #999;
    pointer-events: none;
    transition: all 0.25s ease !important;
    line-height: 1;
    background: transparent;
    padding: 0;
}

[dir="rtl"] .sv-contact-field label {
    left: auto;
    right: 16px;
}

.sv-contact-field label .sv-req {
    color: #e64c29;
    margin-left: 2px;
}

[dir="rtl"] .sv-contact-field label .sv-req {
    margin-left: 0;
    margin-right: 2px;
}

/* Floating up state */
.sv-contact-field.is-focused label,
.sv-contact-field.has-value label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #e64c29;
    background: #fff;
    padding: 0 4px;
}

[dir="rtl"] .sv-contact-field.is-focused label,
[dir="rtl"] .sv-contact-field.has-value label {
    left: auto;
    right: 12px;
}


/* --- Inputs --- */
.sv-contact-field input,
.sv-contact-field textarea,
.sv-contact-field select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.sv-contact-field input:focus,
.sv-contact-field textarea:focus,
.sv-contact-field select:focus {
    border-color: #e64c29;
    box-shadow: 0 0 0 3px rgba(230, 76, 41, 0.1);
}

.sv-contact-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Select arrow */
.sv-contact-field select {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

[dir="rtl"] .sv-contact-field select {
    padding-right: 16px;
    padding-left: 40px;
    background-position: left 14px center;
}

/* Select placeholder color */
.sv-contact-field select option[value=""] {
    color: #999;
}

/* Select-only field: no floating label, rely on placeholder option */
.sv-contact-field.sv-select-field select {
    color: #1a1a2e;
}

.sv-contact-field.sv-select-field select:invalid,
.sv-contact-field.sv-select-field select option[value=""] {
    color: #999;
}


/* --- Submit Button --- */
.sv-contact-submit-wrap {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 6px;
}

.sv-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #e64c29;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.sv-contact-submit:hover {
    background: #cf3f20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 76, 41, 0.3);
}

.sv-contact-submit:active {
    transform: translateY(0);
}

.sv-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sv-contact-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[dir="rtl"] .sv-contact-submit svg {
    transform: scaleX(-1);
}

/* Spinner */
.sv-contact-submit .sv-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: svSpinnerRotate 0.6s linear infinite;
}

.sv-contact-submit.is-loading .sv-spinner {
    display: inline-block;
}

.sv-contact-submit.is-loading svg {
    display: none;
}

@keyframes svSpinnerRotate {
    to { transform: rotate(360deg); }
}


/* --- Contact Badges --- */
.sv-contact-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding: 0 20px;
}

.sv-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    transition: color 0.3s ease !important;
}

.sv-contact-badge:hover {
    color: #e64c29;
}

.sv-contact-badge-icon {
    width: 38px;
    height: 38px;
    background: rgba(230, 76, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sv-contact-badge-icon i {
    font-size: 16px;
    color: #e64c29;
}

.sv-contact-badge span {
    font-weight: 500;
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .sv-home-contact {
        padding: 70px 0 60px;
    }

    .sv-hc-main-title {
        font-size: 34px;
    }

    .sv-hc-header {
        margin-bottom: 40px;
    }

    .sv-contact-card {
        padding: 36px 30px;
    }
}

@media (max-width: 767px) {
    .sv-home-contact {
        padding: 50px 0 45px;
    }

    .sv-hc-main-title {
        font-size: 28px;
    }

    .sv-hc-header {
        margin-bottom: 30px;
    }

    .sv-contact-card {
        padding: 28px 20px;
    }

    .sv-contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sv-contact-badges {
        gap: 16px;
        margin-top: 28px;
    }

    .sv-contact-badge {
        font-size: 13px;
    }

    .sv-contact-badge-icon {
        width: 34px;
        height: 34px;
    }

    .sv-contact-badge-icon i {
        font-size: 14px;
    }
}
