/* =============================================
   Refonte Contact Page - Pixel Perfect
   ============================================= */

/* --- Section --- */
.refonte-contact-section {
    padding: 100px 80px 120px;
    background: #003329;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-primary);
}

/* --- Main Container --- */
.contact-container {
    display: inline-flex;
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 48px;
    width: 100%;
}

/* =============================================
   LEFT COLUMN
   ============================================= */
.contact-content {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
}

.contact-hero-tag {
    border-radius: var(--Radius-radius-16, 16px);
    background: linear-gradient(180deg, rgba(101, 120, 49, 0.80) 0%, rgba(101, 120, 49, 0.20) 100%);
    border-radius: 100px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    margin-bottom: -16px;
    font-weight: 400;
    font-size: 14px;
    font-family: var(--font-primary);
    color: #BECE88;


}

/* Title */
.contact-title {
    align-self: stretch;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    word-wrap: break-word;
    color: #FFFFFF;
}

/* Description */
ul.contact-description {
    align-self: stretch;
    color: #FFFFFF !important;
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 22px;
    margin: 0;
    padding-left: 28px;
    list-style: none;
}

ul.contact-description li {
    position: relative;
    margin-bottom: 12px;
    color: #FFFFFF !important;

}

ul.contact-description li::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8F283' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Left bottom area: stars + logos */
.contact-left-bottom {
    width: 100%;
    max-width: 594px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

/* --- Stars Rating Row --- */
.rating-row {
    align-self: stretch;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.stars-wrapper {
    display: flex;
    align-items: center;
    gap: 4.18px;
}

.trustpilot-stars {
    height: 20px;
    width: auto;
}

.rating-score {
    text-align: center;
    color: #FFFFFF;
    font-size: 20px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 24px;
}

.trust-desc {
    color: #FFFFFF;
    font-family: var(--font-primary);
    font-size: 14px;
    opacity: 0.8;
    margin: 4px 0 0 0;
}

/* --- Logos Carousel --- */
.contact-logos-card {
    background: rgba(200, 220, 210, 0.05);
    /* very faint whiteish/green */
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

.contact-logos-card .logos-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.contact-logos-card .logos-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
    padding-right: 48px;
}

.contact-logos-card .logos-track:hover {
    animation-play-state: paused;
}

.contact-logos-card .logos-track img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
    transition: filter 0.3s ease;
}

.contact-logos-card .logos-track img:hover {
    filter: brightness(0) invert(1) opacity(1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =============================================
   DECORATIVE DOT (SVG icon between columns)
   ============================================= */
.decorative-dot {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

/* =============================================
   RIGHT COLUMN: FORM
   ============================================= */
.contact-form-outer {
    flex: 1 1 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 450px;
}

/* Override global index.css #demoBloc styles */
.refonte-contact-section #demoBloc {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 24px;
}

.contact-form-inner {
    width: 100%;
    padding: 48px;
    background: #F4F7F6;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
}

/* Override global index.css #demoForm grid layout */
.refonte-contact-section #demoForm {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Override global index.css #demoForm label color */
.refonte-contact-section #demoForm label {
    display: none;
    /* The design uses hidden labels or placeholders */
}

/* Override global index.css #demoForm input/select */
.refonte-contact-section #demoForm input,
.refonte-contact-section #demoForm select {
    height: 48px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8E6;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #181D27;
    box-sizing: border-box;
    width: 100%;
}

.refonte-contact-section #demoForm input::placeholder {
    color: #98A2B3;
}

/* Override global #demoSubmit */
.refonte-contact-section #demoSubmit {
    height: 44px;
    padding: 6px 20px;
    background: #003329;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

/* Override global #demoLoader */
.refonte-contact-section #demoLoader {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* Override global .sourceBadge */
.refonte-contact-section .sourceBadge {
    background: rgba(0, 51, 41, 0.1);
    border: 1px solid rgba(0, 51, 41, 0.2);
    color: #003329;
}

/* Form Header */
.form-header {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.form-header-title {
    color: #181D27;
    font-size: 28px;
    font-family: var(--font-primary);
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
    line-height: 1.2;
}

/* Form Layout */
#demoForm form {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
}

.form-row {
    align-self: stretch;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 27px;
}

.form-group {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
}

.form-group input,
.form-group select {
    align-self: stretch;
    height: 42px;
    padding: 12px 16px;
    background: white;
    border-radius: 4px;
    border: 1px solid #EAECF0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1A1A1A;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #003329;
    box-shadow: 0 0 0 2px rgba(0, 51, 41, 0.1);
}

.submit-container {
    align-self: stretch;
    padding-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-team-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-team-submit span {
    font-family: var(--font-primary);
    font-size: 16px !important;
    font-weight: 400;
    color: #E6FFA3 !important;
    line-height: 22px;
}

.btn-team-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 41, 0.3);
}

@media (max-width: 640px) {
    .btn-team-submit {
        width: 100%;
        padding: 12px 24px;
        height: auto;
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .refonte-contact-section {
        padding: 60px 40px 80px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-content {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .contact-form-outer {
        flex: none;
        width: 100%;
    }

    .refonte-contact-section #demoBloc {
        width: 100%;
    }

    .decorative-dot {
        display: none;
    }

    .contact-left-bottom {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .refonte-contact-section {
        padding: 40px 16px 60px;
    }

    .contact-container {
        gap: 32px;
    }

    .contact-title {
        font-size: 32px;
        line-height: 36px;
    }

    ul.contact-description {
        font-size: 15px;
    }

    .contact-form-outer {
        min-width: unset;
        width: 100%;
    }

    .contact-form-inner {
        padding: 24px 16px;
        gap: 24px;
    }

    .refonte-contact-section #demoForm {
        gap: 24px;
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        max-width: 100%;
    }

    #demoForm form {
        width: 100%;
        gap: 24px;
    }

    .form-row {
        width: 100%;
        flex-direction: column;
        gap: 24px;
    }

    .form-header-title {
        font-size: 20px;
    }

    .form-header-desc {
        font-size: 16px;
    }

    .submit-btn-green {
        width: 100%;
        justify-content: center;
    }

    .contact-left-bottom {
        padding-bottom: 32px;
        align-items: center;
    }

    .contact-trustpilot {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .rating-row {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .refonte-contact-section {
        padding: 52px 12px 40px;
    }

    .contact-title {
        font-size: 28px;
        line-height: 32px;
    }

    .contact-form-outer {
        padding: 0;
        border-radius: 12px;
    }

    .contact-form-inner {
        padding: 24px 16px;
        border-radius: 12px;
    }
}

/* =============================================
   SUCCESS / ERROR / LOADER STATES
   ============================================= */
#demoSuccess,
#demoError {
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

#demoLoader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}