/* ===========================================
   CONTACT PAGE SPECIFIC STYLES
   Extracted from contact.html inline styles
   =========================================== */

#clapat-page-content.light-content #hero-caption .hero-title,
#clapat-page-content.light-content #hero-caption .hero-title::before,
#clapat-page-content.light-content #hero-caption .hero-title::after,
#clapat-page-content.light-content #hero-caption .hero-title > div > span {
    font-family: 'Montserrat', sans-serif;
}

#clapat-page-content.light-content #hero-caption .hero-title {
    font-weight: 800;
    font-size: calc(1rem + 12vw - 7px);
}

#clapat-page-content.light-content #hero-caption .hero-title::before,
#clapat-page-content.light-content #hero-caption .hero-title::after {
    color: #7c3aed !important;
    font-size: 19px;
    line-height: 23px;
    height: 23px;
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.55);
}

#clapat-page-content.light-content #hero-caption .hero-title > div > span {
    color: #3cbdf7 !important;
    font-weight: 800;
    opacity: 1 !important;
    letter-spacing: -0.06em;
}

#clapat-page-content.light-content #hero-caption .hero-subtitle,
#clapat-page-content.light-content #hero-caption .hero-subtitle * {
    font-family: 'Montserrat', sans-serif;
}

#clapat-page-content.light-content #hero-caption .hero-subtitle {
    font-size: 19px;
    line-height: 24px;
    bottom: 0px;
    transform: none;
}

#clapat-page-content.light-content #hero-caption .hero-subtitle span {
    font-weight: 400;
}

#clapat-page-content.light-content #hero-caption .hero-subtitle .secondary-font span {
    font-weight: 600;
}

#clapat-page-content.light-content #hero-footer .hero-footer-right {
    position: relative;
    top: 14px;
    line-height: 24px;
}

/* Contact: move hero-footer controls to a fixed viewport overlay */
#clapat-page-content.light-content #hero-footer .hero-footer-left,
#clapat-page-content.light-content #hero-footer .hero-footer-right {
    display: none !important;
}

.contact-fixed-footer {
    --cf-side: 60px;
    --cf-bottom: 40px;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 var(--cf-side) calc(var(--cf-bottom) + env(safe-area-inset-bottom));

    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease, visibility 200ms ease;
}

/* Don't show over the preloader (template adds body.preloader-finished after fade out) */
body:not(.preloader-finished) .contact-fixed-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Bottom-left Scroll to Explore */
.contact-fixed-footer .contact-fixed-scroll {
    position: static;
    pointer-events: auto;
}

/* In this fixed footer we manage layout; neutralize the template's fixed-position variant */
.contact-fixed-footer .scroll-down.scroll-down-fixed {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    -webkit-transform: none !important;
    transform: none !important;
}

/* Bottom-right email */
.contact-fixed-footer .contact-fixed-email {
    position: static;
    pointer-events: auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: #ffffff;
    text-decoration: none;

    /* Match the CTA's overall height (icon-wrap 80px + button-text margins) so text centers the same */
    display: flex;
    align-items: center;
    height: 80px;
}

/* Hide on scroll down, show on scroll up (class toggled in template JS) */
body.preloader-finished.scroll-direction-down .contact-fixed-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .contact-fixed-footer {
        --cf-side: 40px;
        --cf-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .contact-fixed-footer {
        --cf-side: 20px;
        --cf-bottom: 20px;
    }

    .contact-fixed-footer .contact-fixed-email {
        font-size: 12px;
    }
}

/* Bottom section title styling (match reference "let's talk") */
#clapat-page-content.light-content .contact-bottom-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #3cbdf7;
    text-transform: lowercase;
    font-size: clamp(44px, 6vw, 96px);
    line-height: 1;
    margin: 0;
}

/* Contact form (match reference layout) */
#clapat-page-content.light-content .contact-form-v2 {
    max-width: 720px;
    width: min(720px, 100%);
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: -220px;
}

#clapat-page-content.light-content .contact-form-v2-title {
    text-align: center;
    margin-bottom: 4px;
    font-size: clamp(14px, calc(6vw - 30px), 58px);
}

#clapat-page-content.light-content .contact-form-v2-form {
    width: 100%;
}

#clapat-page-content.light-content .cfv2-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 34px;
}

#clapat-page-content.light-content .cfv2-row.cfv2-two {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

#clapat-page-content.light-content .cfv2-row.cfv2-contact {
    grid-template-columns: 160px 150px 1fr;
    gap: 22px;
    align-items: end;
}

#clapat-page-content.light-content .cfv2-field {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Tighter label-to-underline spacing for specific fields */
#clapat-page-content.light-content .cfv2-field.cfv2-tight {
    gap: 0px;
}

#clapat-page-content.light-content .cfv2-field.cfv2-tight .cfv2-control {
    padding: 2px 0 8px;
}

#clapat-page-content.light-content .cfv2-field.cfv2-tight .cfv2-label {
    line-height: 18px;
}

/* shortcodes.css forces inputs/selects to height:50px; override (Contact-only) so underlines sit closer */
#clapat-page-content.light-content .contact-form-v2 #contactform .cfv2-control {
    height: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 2px !important;
}

/* Shorten the Contact No. underlines while keeping +966 wider than the country */
#clapat-page-content.light-content .contact-form-v2 #contactform #contact_country {
    max-width: 160px;
}

#clapat-page-content.light-content .contact-form-v2 #contactform #contact_code {
    max-width: none;
    width: 100%;
}

#clapat-page-content.light-content .cfv2-field.cfv2-label-only {
    justify-content: flex-end;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 6px;
}

#clapat-page-content.light-content .cfv2-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    color: #ffffff;
}

#clapat-page-content.light-content .cfv2-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding: 12px 0 14px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #ffffff;
    outline: none;
}

#clapat-page-content.light-content .cfv2-control::placeholder {
    color: rgba(255,255,255,0.55);
}

#clapat-page-content.light-content .cfv2-select {
    position: relative;
    cursor: pointer;
}

#clapat-page-content.light-content .cfv2-select select.cfv2-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 26px;
}

#clapat-page-content.light-content .cfv2-select::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6315e5;
    border-bottom: 2px solid #6315e5;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

/* Country: show chevron near label instead of at far-right (clickable) */
#clapat-page-content.light-content .cfv2-field.cfv2-country .cfv2-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#clapat-page-content.light-content .cfv2-field.cfv2-country .cfv2-country-toggle {
    width: 10px;
    height: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-block;
    cursor: pointer;
    position: relative;
    top: 1px;
}

#clapat-page-content.light-content .cfv2-field.cfv2-country .cfv2-country-toggle::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-right: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    transform: rotate(45deg);
}

#clapat-page-content.light-content .cfv2-field.cfv2-country .cfv2-country-toggle:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.6);
    outline-offset: 3px;
    border-radius: 2px;
}

#clapat-page-content.light-content .contact-form-v2-actions {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

#clapat-page-content.light-content .contact-form-v2-submit {
    border: 0;
    background: #3cbdf7;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 16px;
    border-radius: 9999px;
    cursor: pointer;
}

#clapat-page-content.light-content .contact-form-v2-submit:focus-visible {
    outline: 2px solid rgba(60,189,247,0.75);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    #clapat-page-content.light-content .cfv2-row.cfv2-two {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    #clapat-page-content.light-content .cfv2-row.cfv2-contact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    #clapat-page-content.light-content .cfv2-field.cfv2-label-only {
        padding-bottom: 0;
    }
}

#clapat-page-content.light-content #hero-footer .scroll-down {
    display: none !important;
}

#clapat-page-content.light-content #hero-footer #info-text span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 100;
}

#clapat-page-content.light-content #hero-footer .scroll-down .button-icon,
#clapat-page-content.light-content #hero-footer .scroll-down .button-icon i {
    color: #601dce !important;
}

#clapat-page-content.light-content #hero-footer .scroll-down .button-text,
#clapat-page-content.light-content #hero-footer .scroll-down .button-text span {
    color: #ffffff !important;
}

#contact-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#clapat-page-content.light-content .clipped-image-wrapper .clipped-image {
    width: 100vw;
    clip-path: inset(0% 0% round 0px);
    -webkit-transform: none;
    transform: none;
    margin: 0;
}

#clapat-page-content.light-content .contact-map-addresses {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 70px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#clapat-page-content.light-content .contact-map-addresses .contact-map-half {
    height: 50vh;
}

#clapat-page-content.light-content .contact-map-addresses .contact-map-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #02042a;
}

#clapat-page-content.light-content .contact-map-addresses .contact-map-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#clapat-page-content.light-content .contact-map-addresses .contact-map-media .clipped-image-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#clapat-page-content.light-content .clipped-image-wrapper .clipped-image-content {
    height: 1px !important;
    overflow: hidden;
}

#clapat-page-content.light-content .contact-map-addresses .contact-addresses-half {
    height: 50vh;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding: 36px 80px 0 140px;
    box-sizing: border-box;
}

#clapat-page-content.light-content .contact-location {
    flex: 1;
    max-width: 360px;
}

#clapat-page-content.light-content .contact-location .contact-location-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 22px;
}

#clapat-page-content.light-content .contact-location .contact-location-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #7c3aed;
    filter: drop-shadow(0 8px 22px rgba(124, 58, 237, 0.35));
}

#clapat-page-content.light-content .contact-location .contact-location-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 17px;
    margin-bottom: 14px;
    color: #ffffff;
}

#clapat-page-content.light-content .contact-location .contact-location-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 19px;
    color: #ffffff;
    opacity: 1;
    user-select: text;
    -webkit-user-select: text;
}

@media (max-width: 1024px) {
    #clapat-page-content.light-content .contact-map-addresses {
        height: auto;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    #clapat-page-content.light-content .contact-map-addresses .contact-map-half {
        height: 50vh;
    }

    #clapat-page-content.light-content .contact-map-addresses .contact-addresses-half {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px 48px;
        gap: 36px;
    }

    #clapat-page-content.light-content .contact-location {
        max-width: none;
    }
}

/* Footer layout override for contact page (match screenshot spacing) */
.clapat-footer #footer-container {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto;
    align-items: center !important;
    column-gap: 60px;
}

/* Let grid control placement (template uses absolute/float in some breakpoints) */
.clapat-footer #footer-container #backtotop.button-wrap.left {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    grid-column: 1;
    margin-bottom: 40px !important;
}

.clapat-footer #footer-container #backtotop .button-text {
    display: block !important;
}

.clapat-footer #footer-container #backtotop .button-text span {
    white-space: nowrap;
}

.clapat-footer #footer-container #backtotop .button-icon i {
    color: #4814ac;
}

.clapat-footer #footer-container .footer-nav-links {
    grid-column: 2;
    white-space: nowrap;
    transform: translateX(60px);
    margin-bottom: 60px;
}

.clapat-footer #footer-container .footer-nav-links a {
    display: inline-flex;
    white-space: nowrap;
}

.clapat-footer #footer-container .footer-copyright-text {
    grid-column: 3;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
    font-size: 7px;
    transform: translateX(90px);
    position: relative;
    top: -32px;
}

.clapat-footer #footer-container .socials-wrap {
    grid-column: 4;
    position: relative !important;
    float: none !important;
    width: 240px;
    height: 160px;
    margin: 0 !important;
    margin-top: 10px !important; /* Offset to align with footer, moved 10px down from -40px */
    justify-self: end;
    overflow: visible;
}

.clapat-footer #footer-container .socials-text,
.clapat-footer #footer-container .socials-icon {
    float: right;
}

/* Let the base styles handle transforms - don't override */

.clapat-footer #footer-container .socials-icon i {
    color: #4814ac;
}

/* Footer navigation links */
.footer-nav-links {
    display: flex;
    gap: 34px;
    align-items: center;
    pointer-events: auto;
}

.footer-nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 200ms ease;
    pointer-events: auto;
    cursor: pointer;
}

.footer-nav-links a:hover {
    opacity: 0.7;
}

/* Footer copyright text */
.footer-copyright-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    pointer-events: auto;
}

.footer-copyright-text a {
    color: inherit;
    text-decoration: none;
    transition: opacity 200ms ease;
    pointer-events: auto;
    cursor: pointer;
}

.footer-copyright-text a::before {
    display: none;
}

.footer-copyright-text a:hover {
    opacity: 0.8;
}

/* Footer email link */
.footer-email-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.footer-email-link:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .footer-nav-links {
        gap: 36px;
    }

    .footer-nav-links a {
        font-size: 10px;
    }
    
    .footer-copyright-text {
        display: none;
    }
    
    .footer-email-link {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .footer-nav-links {
        gap: 24px;
        flex-wrap: wrap;
    }

    .footer-nav-links a {
        font-size: 8px;
    }
}

/* Phone Row Layout - Three columns */
#clapat-page-content.light-content .cfv2-phone-row {
    display: grid;
    grid-template-columns: auto 1fr auto 2fr;
    gap: 20px;
    align-items: end;
}

#clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-label {
    grid-column: 1;
}

#clapat-page-content.light-content .cfv2-phone-row .cfv2-country-code {
    grid-column: 2;
}

#clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-code {
    grid-column: 3;
    width: 60px;
}

#clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-number {
    grid-column: 4;
}

#clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-code .cfv2-control {
    text-align: center;
    cursor: default;
}

/* Make select dropdowns look consistent */
#clapat-page-content.light-content select.cfv2-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    /* Chevron is added via .cfv2-select::after - no background-image needed */
    padding-right: 25px;
}

@media (max-width: 767px) {
    #clapat-page-content.light-content .cfv2-phone-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-label {
        grid-column: 1;
    }
    
    #clapat-page-content.light-content .cfv2-phone-row .cfv2-country-code {
        grid-column: 1;
    }
    
    #clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-code {
        grid-column: 1;
        width: 100%;
    }
    
    #clapat-page-content.light-content .cfv2-phone-row .cfv2-phone-number {
        grid-column: 1;
    }
}

/* ===========================================
   FORM VALIDATION STYLES
   =========================================== */

/* Required field indicator */
.required-star {
    color: #ef4444;
    font-weight: 600;
}

/* Invalid field state */
#clapat-page-content.light-content .cfv2-control.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

#clapat-page-content.light-content .cfv2-control.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

/* Field error message */
.field-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 2px;
    font-family: 'Montserrat', sans-serif;
}

.field-error.visible {
    display: block;
}

/* Form message (success/error) */
#form-message {
    display: none;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    align-items: center;
    gap: 12px;
}

#form-message i {
    font-size: 18px;
}

#form-message.success {
    display: flex;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

#form-message.success i {
    color: #22c55e;
}

#form-message.error {
    display: flex;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

#form-message.error i {
    color: #ef4444;
}

/* Textarea styling */
#clapat-page-content.light-content .cfv2-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
}

/* Phone code and number field styling */
#clapat-page-content.light-content .cfv2-phone-code {
    flex: 0 0 120px;
    max-width: 120px;
}

#clapat-page-content.light-content .cfv2-phone-country {
    flex: 0 0 160px;
    max-width: 160px;
}

#clapat-page-content.light-content .cfv2-phone-code-display {
    flex: 0 0 70px;
    max-width: 70px;
}

#clapat-page-content.light-content .cfv2-phone-code-display .cfv2-control {
    text-align: center;
    cursor: default;
    background: transparent;
    pointer-events: none;
}

#clapat-page-content.light-content .cfv2-phone-number {
    flex: 1;
}

/* Select dropdown optgroup styling */
#clapat-page-content.light-content select.cfv2-control optgroup {
    font-weight: 600;
    color: #7c3aed;
    background: #1a1a3e;
}

#clapat-page-content.light-content select.cfv2-control option {
    font-weight: 400;
    color: #111 !important;
    background: #fff !important;
    padding: 8px;
}

/* Fix dropdown text visibility on all browsers */
select.cfv2-control option {
    color: #111 !important;
    background-color: #fff !important;
}

select.cfv2-control optgroup {
    color: #7c3aed !important;
    background-color: #f5f5f5 !important;
    font-weight: 600;
}

/* Submit button disabled state */
#clapat-page-content.light-content .contact-form-v2-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments for validation */
@media (max-width: 767px) {
    #form-message {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .field-error {
        font-size: 11px;
    }
}

/* ================================================
   GOOGLE MAPS EMBED INTEGRATION
   ================================================ */

/* Embedded Map iframe */
#google-map-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
}

/* Make address cards clickable */
.contact-location[data-location] {
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
}

.contact-location[data-location]:hover {
    transform: translateY(-2px);
    border: 2px solid #6315e5;
}

.contact-location[data-location]:focus {
    outline: none;
    border: 2px solid #6315e5;
}

.contact-location[data-location].active {
    background: transparent;
    border: 2px solid #6315e5;
}