/* Keep "Project Inquiry" below the fixed navbar (body padding is forced to 0) */
section.contact-form-section,
.contact-form-section {
    padding-top: 7.25rem !important;
    scroll-margin-top: 0;
}

@media (max-width: 767.98px) {
    section.contact-form-section,
    .contact-form-section {
        padding-top: 7.25rem !important;
    }
}

.contact-form-section .container,
.contact-form-section .row,
.contact-form-section [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.sc-form-wrap,
.sc-form,
.sc-grid,
.sc-field,
.sc-form fieldset {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.sc-form-wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.contact-form-section .sc-form,
.sc-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: none;
    overflow: visible;
    width: 100%;
}

.sc-form *,
.sc-form *::before,
.sc-form *::after {
    box-sizing: border-box;
}

.sc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.1rem;
    width: 100%;
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.sc-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sc-form legend {
    float: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 0 0.4rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

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

.sc-field label,
.sc-field legend {
    color: #080C17;
    font-weight: 600;
    font-size: 0.92rem;
}

.sc-optional {
    color: #6B7280;
    font-weight: 500;
}

.sc-req {
    color: #00d9ff;
}

.sc-form input[type="text"],
.sc-form input[type="email"],
.sc-form input[type="tel"],
.sc-form input[type="search"],
.sc-form select,
.sc-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #080C17;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
}

.sc-form select {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-form textarea {
    resize: vertical;
    min-height: 140px;
}

.sc-form input:focus,
.sc-form select:focus,
.sc-form textarea:focus {
    outline: none;
    border-color: #2d82fe;
    box-shadow: 0 0 0 3px rgba(45, 130, 254, 0.18);
}

.sc-form .sc-phone input:focus {
    outline: none;
}

.sc-hint {
    color: #6B7280;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.sc-field label,
.sc-field legend,
.sc-hint,
.sc-legal,
.sc-check span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sc-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sc-radio,
.sc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #080C17;
    font-weight: 500;
}

.sc-counter {
    text-align: right;
    color: #6B7280;
    font-size: 0.8rem;
}

.sc-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 0;
}

.sc-alert {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}

.sc-alert-success {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.35);
    color: #080C17;
}

.sc-alert-error {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #991b1b;
}

.sc-turnstile {
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sc-turnstile .cf-turnstile,
.sc-turnstile iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

.sc-submit {
    width: 100%;
    margin-top: 0.4rem;
}

.sc-submit.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.sc-legal {
    margin: 1rem 0 0;
    color: #6B7280;
    font-size: 0.82rem;
    line-height: 1.55;
}

.sc-legal a {
    color: #2d82fe;
}

.sc-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sc-phone {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.sc-phone:focus-within {
    outline: 2px solid rgba(0, 217, 255, 0.45);
    border-color: #2d82fe;
}

.sc-phone-flag {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    min-width: 3.15rem;
    margin: 0;
    padding: 0 0.55rem 0 0.7rem;
    border: 0;
    background: transparent;
    color: #080C17;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
}

.sc-phone-flag:focus-visible {
    outline: 2px solid rgba(0, 217, 255, 0.7);
    outline-offset: -3px;
}

.sc-phone-flag-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.sc-phone-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6B7280;
}

.sc-form .sc-phone-dial {
    flex: 0 1 4.2rem;
    width: auto !important;
    min-width: 2.6rem;
    max-width: 4.6rem;
    margin: 0;
    padding: 0.75rem 0.2rem 0.75rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #2d82fe !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.sc-phone-divider {
    width: 1px;
    margin: 0.55rem 0.15rem;
    background: rgba(45, 130, 254, 0.35);
    flex: 0 0 auto;
}

.sc-form .sc-phone-national {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0.75rem 0.9rem 0.75rem 0.7rem !important;
    border: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: transparent !important;
}

.sc-country-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(8, 12, 23, 0.12);
}

.sc-country-panel input[type="search"] {
    margin-bottom: 0.4rem;
}

.sc-country-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(240px, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sc-country-panel li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    color: #080C17;
    font-size: 0.9rem;
}

.sc-country-panel li[aria-selected="true"],
.sc-country-panel li:hover,
.sc-country-panel li:focus {
    background: rgba(45, 130, 254, 0.18);
    outline: none;
}

.sc-country-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-country-dial {
    color: #2d82fe;
    font-weight: 600;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sc-field.has-error input[type="text"],
.sc-field.has-error input[type="email"],
.sc-field.has-error input[type="tel"],
.sc-field.has-error select,
.sc-field.has-error textarea {
    border-color: #ff5c75;
    box-shadow: 0 0 0 1px rgba(255, 92, 117, 0.35);
}

.sc-phone.has-error,
.sc-field.has-error .sc-phone {
    border-color: #ff5c75;
}

.sc-phone.has-error:focus-within,
.sc-field.has-error .sc-phone:focus-within {
    outline-color: rgba(255, 92, 117, 0.55);
    border-color: #ff5c75;
}

.sc-field.has-error .sc-radio,
.sc-field.has-error .sc-check {
    color: #991b1b;
}

.sc-turnstile.has-error {
    border: 1px solid #ff5c75;
    border-radius: 10px;
    padding: 0.6rem;
}

.sc-consent.has-error {
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 92, 117, 0.55);
}

@media (max-width: 767px) {
    .sc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-form-section .sc-form,
    .sc-form {
        padding: 1.15rem;
    }

    .sc-phone-flag {
        min-width: 2.5rem;
        padding-left: 0.45rem;
        padding-right: 0.4rem;
    }

    .sc-form .sc-phone-dial {
        flex-basis: 3.4rem;
        max-width: 3.8rem;
        min-width: 2.4rem;
    }
}

@media (max-width: 380px) {
    .contact-form-section {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-form-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-form-section .sc-form,
    .sc-form {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .sc-form input[type="text"],
    .sc-form input[type="email"],
    .sc-form input[type="tel"],
    .sc-form input[type="search"],
    .sc-form select,
    .sc-form textarea {
        font-size: 16px;
        padding: 0.7rem 0.7rem;
    }

    .sc-phone-flag {
        min-width: 2.2rem;
        padding: 0 0.3rem 0 0.4rem;
    }

    .sc-form .sc-phone-dial {
        flex-basis: 2.8rem;
        max-width: 3.2rem;
        min-width: 2.2rem;
        font-size: 0.92rem;
        padding-right: 0.1rem !important;
    }

    .sc-form .sc-phone-national {
        padding-left: 0.45rem !important;
        padding-right: 0.55rem !important;
    }

    .sc-phone-divider {
        margin: 0.45rem 0.05rem;
    }
}
