/* Hero */

main {
    /* margin-top: 75px; */
}
.co-hero {
    /* margin-top: 76px; */
    /* 440px up to ~1920px wide, then grows with the viewport (440/1920 ≈ 23vw)
       so `cover` doesn't over-zoom the image on large screens */
    height: max(440px, 23vw);
    /* background-image: url('../images/OurTeamintro.jpeg') !important; */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 60px;
}

.co-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background-image: url('../images/OurTeamintro.jpeg') !important; */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.co-hero::before {
    content: '';
    position: absolute;
    inset: 0;
}

.co-hero-overlay {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 0;
}

.co-hero-overlay h1 {
    color: #333333;
    font-family: 'Sailec Bold';
    /* font-size: 60px; */
    font-size: 4vw;
    line-height: 1.3;
    margin: 0 0 16px;
}

span.co-green {
    color: #005900;
}
span.co-blue {
    color: #0086BD;
}

.co-hero-overlay .co-hero-line {
    width: 90px;
    height: 5px;
    background: #8BD440;
    border-radius: 2px;
}

.co-hero-desc {
    font-family: 'Sailec Medium';
    font-size: 17px;
    color: #4A4A4A;
    line-height: 1.6;
    margin: 16px 0 0;
    width: 100%;
}

.contact-section {
    padding-top: 100px;
    padding-bottom: 100px;
    max-width: 90%;
    margin: auto;
}

.contact-section .flex-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-section .col-lg-6 {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
}

.contact-section .email-box {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    background: #F5F5F5;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
    padding: 30px 40px;
}

.contact-section .align-items-center {
    display: flex !important;
    align-items: center !important;
}

.contact-section .me-3 {
    margin-right: 1rem !important;
}

.contact-section .img-fluid {
    width: 50px;
}

.contact-section .w-100 {
    width: 100% !important;
}

.contact-section .email-box h4 {
    color: #4A4A4A;
    font-family: "Sailec Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 115.2%;
    margin: 0;
    padding: 0;
}

.contact-section .email-box a {
    color: #646464;
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    font-family: "Sailec Light";
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    background: #F5F5F5B2;
    padding: 80px 0;
}

.contact-form-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0px;
    border-radius: 16px;
}

.contact-form-container h2 {
    font-family: 'Sailec Bold';
    font-size: 2.2vw;
    color: #4A4A4A;
    margin: 0 0 40px 0;
    text-align: center;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
}
.form-row.three-fields {
    grid-template-columns: repeat(3, 1fr);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.form-row.full-width,
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-control {
    font-family: 'Sailec Light';
    font-size: 16px;
    color: #333;
    border: none;
    border-bottom: 2px solid #9B9B9B;
    padding: 16px 0px;
    background: transparent;
    transition: all 0.3s ease;
    outline: none;
}

.form-group:focus-visible {
    outline: none;
}

.form-control::placeholder {
    color: transparent;
    font-family: 'Sailec Light';
}

.form-control:focus {
    border-color: #005900;
}

.form-group label {
    font-family: 'Sailec Light';
    font-size: 16px;
    color: #999;
    position: absolute;
    left: 0;
    top: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
    background: transparent;
}

/* Floating label on focus */
.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #005900;
    padding: 0 4px;
    font-weight: 500;
}

textarea.form-control {
    font-family: 'Sailec Light';
    font-size: 15px;
    resize: none;
    min-height: 80px;
    padding: 16px;
}

textarea.form-control:focus + label,
textarea.form-control:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: #005900;
    padding: 0 4px;
}

.require-label {
    color: #d63637;
}

.form-row.submit-block {
    display: block;
    margin: auto;
}

.checkbox-label {
    color: #BBBBBB;
    font-family: 'Sailec Light';
}

.checkbox-label a {
    color: #005900;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    font-family: 'Sailec Medium';
    margin-top: 5px;
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.valid {
    border-color: #28a745;
}

.submit-btn {
    background: #005900;
    color: #fff;
    font-family: 'Sailec Medium';
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    padding: 18px 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #005900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 212, 64, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.co-intro-section {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    max-width: 90%;
    margin: 0 auto;
}

.co-intro-section h2 {
    font-family: 'Sailec Bold';
    font-size: 2.5vw;
    color: #4A4A4A;
    margin: 0;
    line-height: 1.1;
}

.co-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px 80px;
    max-width: 90%;
    margin: 0 auto;
}

.co-model-card {
    border: 2px solid rgb(50 48 48 / 7%);
    border-radius: 16px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.co-card-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.co-img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.co-location-content {
    padding: 20px 20px;
}

.co-location-content h4 {
    font-family: 'Sailec Bold';
    color: #4A4A4A;
    font-size: 23px;
    font-weight: 700 !important;
    line-height: 33px;
    margin: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.co-address-text {
    display: flex;
}

.co-address-text p {
    font-family: 'Sailec Medium';
    color: #646464;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.co-address-text .w-100 {
    width: 100%;
}
.co-map-icon {
    width: 24px;
    height: 22px;
    line-height: 22px;
    background: #019DFD;
    border-radius: 50%;
    padding: 5px;
    text-align: center;
    margin-right: .5rem !important;
}

.co-map-icon i {
    color: #ffffff;
}

.co-case-line {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(to right, #019DFD 0 45px, /* orange part */ rgba(0, 0, 0, 0.3) 45px 100% /* gray part */);
   
}

.co-location-content p span {
    font-weight: 700 !important;
    font-family: 'Sailec Bold';
}

.co-location-content p {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    margin-bottom: 1rem;
    color: #646464;
    font-family: 'Sailec Medium';
}

.co-location-content a {
    color: #0F0F33;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    font-family: 'Sailec Light';
    text-decoration: underline;
}
/* ── WPForms Styling ─────────────────────────────────────────── */

/* Remove WPForms default card/border wrapper */
.contact-form .wpforms-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Grid layout: 3 columns */
.contact-form .wpforms-field-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px 40px !important;
    align-items: end !important;
}

/* Row 2: Company Name + What can we help you with? — each takes 1.5 cols
   We target by nth-child. Fields order: 1=Name, 2=Email, 3=Mobile, 4=Company, 5=What can, 6=Additional, 7=Checkbox */
/* Company Name spans 1 col, What can help spans 2 cols */
.contact-form .wpforms-field:nth-child(4) {
    grid-column: span 1 !important;
}
.contact-form .wpforms-field:nth-child(5) {
    grid-column: span 2 !important;
}

/* Additional Details, checkbox, submit — full width */
.contact-form .wpforms-field:nth-child(6),
.contact-form .wpforms-field-checkbox,
.contact-form .wpforms-submit-container {
    grid-column: 1 / -1 !important;
}

/* Remove WPForms default field padding/margin.
   width: 100% overrides wpforms-one-half (47.5%) so inputs fill the full grid column. */
.contact-form .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* WPForms sets wpforms-field-small/medium/large as % widths on the input itself.
   Override to fill the full grid column. */
.contact-form .wpforms-field input.wpforms-field-small,
.contact-form .wpforms-field input.wpforms-field-medium,
.contact-form .wpforms-field input.wpforms-field-large {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Field labels */
.contact-form .wpforms-field-label {
    font-family: 'Sailec Light' !important;
    font-size: 15px !important;
    color: #4A4A4A !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;
}

/* Required asterisk */
.contact-form .wpforms-required-label {
    color: #d63637 !important;
}

/* Input / Select styling — bottom border only */
.contact-form .wpforms-field input[type="text"],
.contact-form .wpforms-field input[type="email"],
.contact-form .wpforms-field input[type="tel"],
.contact-form .wpforms-field input[type="number"],
.contact-form .wpforms-field select,
.contact-form .wpforms-field textarea {
    font-family: 'Sailec Light' !important;
    font-size: 15px !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #9B9B9B !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
    width: 100% !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
}

.contact-form .wpforms-field input:focus,
.contact-form .wpforms-field select:focus,
.contact-form .wpforms-field textarea:focus {
    border-bottom-color: #005900 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Textarea — no resize, bottom border only */
.contact-form .wpforms-field textarea {
    resize: none !important;
    min-height: 20px !important;
    height: 40px !important;
}

/* Hide character counter */
.contact-form .wpforms-field-limit-text {
    display: none !important;
}

/* Phone field — intl-tel-input flag button fix */
.contact-form .wpforms-field .iti {
    width: 100% !important;
    display: block !important;
}
.contact-form .wpforms-field input[type="tel"] {
    padding-left: 56px !important; /* clear the country flag + dial-code button */
}

/* Select arrow */
.contact-form .wpforms-field select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    padding-right: 24px !important;
    cursor: pointer !important;
}

/* Checkbox field */
.contact-form .wpforms-field-checkbox .wpforms-field-label {
    display: none !important;
}
.contact-form .wpforms-field-checkbox ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.contact-form .wpforms-field-checkbox li label {
    font-family: 'Sailec Light' !important;
    font-size: 14px !important;
    color: #BBBBBB !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}
.contact-form .wpforms-field-checkbox li label a {
    color: #0086BD !important;
    text-decoration: underline !important;
}
.contact-form .wpforms-field-checkbox li input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
    accent-color: #005900 !important;
    cursor: pointer !important;
}

/* Submit button */
.contact-form .wpforms-submit-container {
    text-align: center !important;
    padding: 10px 0 0 !important;
}
.contact-form .wpforms-submit {
    background: #019DFD !important;
    color: #fff !important;
    font-family: 'Sailec Medium' !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 0 50px !important;
    height: 52px !important;
    line-height: 52px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.contact-form .wpforms-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 89, 0, 0.25) !important;
}

/* Remove default WPForms page break / progress styles */
.contact-form .wpforms-page-indicator {
    display: none !important;
}
.contact-form .wpforms-field-checkbox a {
    color: #005900;
    text-decoration: underline;
    font-family: 'Sailec Light';
}
/* ── End WPForms Styling ──────────────────────────────────────── */

/* Responsive */

@media (max-width: 700px) {
    /* Stack WPForms grid to single column */
    .contact-form .wpforms-field-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Reset all column spans so every field takes the full row */
    .contact-form .wpforms-field,
    .contact-form .wpforms-field:nth-child(4),
    .contact-form .wpforms-field:nth-child(5),
    .contact-form .wpforms-field:nth-child(6),
    .contact-form .wpforms-field-checkbox,
    .contact-form .wpforms-submit-container {
        grid-column: span 1 !important;
    }

    .contact-form-container h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .contact-form {
        padding: 40px 0;
    }

    .contact-form-container {
        max-width: 95%;
    }
}

@media (min-width: 1500px) {
    .contact-form-container h2 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .co-intro-section {
        padding-top: 75px;
    }
    .contact-form-container {
        padding: 40px 30px;
    }

    .form-row {
        gap: 20px;
    }
}

@media (max-width: 970px) {
    .co-hero-overlay h1 {
        font-size: 30px;
    }

    .contact-section .flex-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .co-models {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px 60px;
    }
}

@media (max-width: 767px) {
    .co-hero {
        height: 320px;
        padding: 0 30px;
    }

    .co-hero-desc {
        width: 100%;
    }

    .co-hero-overlay h1 {
        font-size: 24px;
    }

    .contact-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
 
    .contact-form {
        padding: 50px 0;
    }

    .contact-form-container {
        max-width: 95%;
        padding: 30px 20px;
    }

    .contact-form-container h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-row {
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-control {
        padding: 14px 12px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
        left: 0;
    }

    .form-row.three-fields {
        grid-template-columns: repeat(1, 1fr);
    }

    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label {
        font-size: 11px;
    }

    .submit-btn {
        width: 100%;
        align-self: stretch;
        margin-top: 15px;
    }

    .co-intro-section {
        padding: 40px 20px;
        max-width: 100%;
    }

    .co-intro-section h2 {
        font-size: 24px;
    }

    .co-models {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        max-width: 100%;
    }
}