@import url('https://fonts.googleapis.com/css2?family=Thasadith:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
    font-family: 'UltraCondensedSansSerif';
    src: url('../fonts/UltraCondensedSansSerif.eot');
    src: url('../fonts/UltraCondensedSansSerif.eot?#iefix') format('embedded-opentype'),
        url('../fonts/UltraCondensedSansSerif.woff2') format('woff2'),
        url('../fonts/UltraCondensedSansSerif.woff') format('woff'),
        url('../fonts/UltraCondensedSansSerif.ttf') format('truetype'),
        url('../fonts/UltraCondensedSansSerif.svg#UltraCondensedSansSerif') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    /* Color tokens for reuse */
    --grad-c1: #5C4832;
    --grad-c2: #876D52;
    --grad-c3: #E9DACC;
}

.uc-landing {
    --uc-overlay: rgba(0, 0, 0, 0.45);
    --uc-card-bg: rgba(18, 17, 17, 0.3);
    --uc-input-bg: rgba(0, 0, 0, 0.35);
    --uc-border: rgba(255, 255, 255, 0.15);
    --uc-text: #ffffff;
    --uc-hero: none;
    color: var(--uc-text);
    overflow: auto;
    width: 100%;
}
.uc-landing-inner{
    position: relative;
/*     min-width: 812px; */
/*     min-height: 100vh; */
    display: grid;
    place-items: center;
}

.uc-hero-img {
    position: absolute;
    inset: 0;
    background-image: var(--uc-hero);
    background-size: cover;
    background-position: center;
    filter: saturate(0.95);
    z-index: 0;
}

.uc-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    /* filter: saturate(0.95); */
    opacity: 0.2;
    margin: 0;
}

.uc-hero-overlay {
    position: absolute;
    inset: 0;
    /* Fallback solid color */
    background-color: var(--grad-c1);
    /* Angle is customizable; default vertical topâ†’bottom */
    --angle: 0deg;
    /* Exact Figma stops */
    background-image: linear-gradient( var(--angle), var(--grad-c1) 0%, var(--grad-c2) 7%, var(--grad-c3) 100% );
    background-repeat: no-repeat;
    background-size: cover;
    /* opacity: 0.2; */
    z-index: 1;
    margin: 0;
}

.uc-container {
    position: relative;
    /* width: 100%;
    max-width: 812px; */
    padding: 0 20px;
    z-index: 2;
    margin: 0 auto;
    overflow: hidden;
}

/* Title ribbon */
.uc-title-wrap {
    background: var(--uc-card-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 27.5px 20px;
    text-align: center;
    margin: 0 auto 50px;
    width: 100%;
}

.uc-title {
    margin: 0;
    font-family: UltraCondensedSansSerif;
    font-size: 48px;
    letter-spacing: 0;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 55px;
}

/* Countdown grid */
.uc-countdown {
    display: flex;
    /* grid-template-columns: repeat(6, minmax(90px, 1fr)); */
    gap: 60px;
    margin: 0 auto 50px;
    padding: 0px 60px;
    flex-wrap: nowrap;
    justify-content: center;
}

.uc-card {
    border-radius: 10px;
    padding: 10px 10px;
    text-align: center;
    background-color: rgba(33, 33, 43, 0.30);
    -webkit-backdrop-filter: blur(4px) saturate(1.2) contrast(1.05);
    backdrop-filter: blur(4px) saturate(1.2) contrast(1.05);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.20),
        inset 0.5px -0.5px 0 rgba(255, 255, 255, 0.18),
        inset -0.5px 0.5px 0 rgba(0, 0, 0, 0.20);
    position: relative;
    flex: 0 0 75px;
}
.uc-card:not(:last-child):after {
    position: absolute;
    top: 0;
    right: -30px;
    background: #4F4744;
    height: 100%;
    width: 2px;
    content: '';
    display: block;
}
.uc-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 34px;
    /* margin-bottom: 8px; */
    letter-spacing: 0;
    font-family: Thasadith;
    display: inline-block;
}

.uc-label {
    font-size: 14px;
    letter-spacing: 0;
    /* opacity: 0.9; */
    color: #DFB177;
    font-family: Thasadith;
    font-weight: bold;
    line-height: normal;
    display: block;
    width: auto;
}

/* Form wrapper (shortcode output styles left to plugin/theme) */
.uc-form-wrap {
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.25)); */
    /* border-radius: 12px; */
    /* padding: 18px; */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.2); */
}

.uc-content-wrap {
    width: 100%;
    display: flex;
    margin: 0;
    flex-flow: column;
    z-index: 3;
    padding: 100px 0;
}
.uc-content-wrap .wpcf7-form label {
    display: none;
}
.uc-landing .fields {
    display: flex;
    row-gap: 5px;
    column-gap: 15px;
    margin-bottom: 5px;
}

.uc-landing input.wpcf7-form-control,
.uc-landing .button-submit {
    border: none;
    background: none;
    margin: 0;
    border-radius: 40px;
    padding: 8.5px 55px 8.5px 30px;
    width: 100%;
    outline: none !important;
    color: rgba(33, 33, 43, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}
.uc-landing input.wpcf7-form-control,
.uc-landing input.wpcf7-form-control::placeholder,
.uc-landing .button-submit .button-text,
.uc-landing input.wpcf7-form-control:autofill,
.uc-landing input.wpcf7-form-control:-webkit-autofill,
.uc-landing input.wpcf7-form-control:-internal-autofill-selected,
.uc-landing input.wpcf7-form-control:-webkit-autofill:focus,
.uc-landing input.wpcf7-form-control:-webkit-autofill:hover{
    color: rgba(33, 33, 43, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    font-family: Thasadith;
    line-height: normal;
    letter-spacing: 0;
    font-weight: bold;
    width: 100%;
    font-size: 14px;
}
.uc-landing .wpcf7-form-control.wpcf7-submit{
    padding: 0;
}
.uc-landing .button-submit {
    position: relative;
    text-align: center;
    padding: 4.75px 20px;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.00)),
        radial-gradient(120% 160% at 50% 0%, rgba(33, 33, 43, 0.25), rgba(33, 33, 43, 0.00) 60%),
        linear-gradient(0deg, rgba(54, 49, 51, 0.15), rgba(54, 49, 51, 0.15));
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.20),
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 0 0 1px rgba(54, 49, 51, 0.10) inset,
        0 12px 24px rgba(117, 97, 77, 0.10);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    background-color: rgba(54, 49, 51, 0.15);
    transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.uc-landing .button-submit:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.00)),
        radial-gradient(120% 160% at 50% 0%, rgba(33, 33, 43, 0.28), rgba(33, 33, 43, 0.00) 60%),
        linear-gradient(0deg, rgba(54, 49, 51, 0.18), rgba(54, 49, 51, 0.08));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(54, 49, 51, 0.08) inset,
        0 14px 26px rgba(117, 97, 77, 0.12);
}

.uc-landing .button-submit:active {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.20),
        0 0 0 1px rgba(54, 49, 51, 0.08) inset,
        0 1px 0 rgba(0, 0, 0, 0.20) inset;
}
.uc-landing .button-submit *{
    line-height: 1;
}
.uc-landing .field:after,
.uc-landing .button-submit .button-icon {
    content: ' ';
    display: block;
    width: 25px;
    height: 25px;
    right: 25px;
    position: absolute;
    top: 5px;
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
}

.uc-landing .field.company:after{
    background-image: url(../images/user.svg);
}
.uc-landing .field.industry:after {
    background-image: url(../images/multiple_user.svg);
}
.uc-landing .field.email:after {
    background-image: url(../images/email.svg);
}
.uc-landing .field.phone:after{
    background-image: url(../images/phone.svg);
}
.uc-landing .wpcf7-form-control.book{
    position: relative;
    cursor: pointer;
}
.uc-landing .button-submit .button-icon{
    background-image: url(../images/arrow-right.svg);
    position: relative;
    right: auto;
    margin-left: 15px;
    top: auto;
}
.uc-landing .button-submit .button-text,
.uc-landing .button-submit .button-icon{
    display: inline-block;
    vertical-align: middle;
}
.uc-landing .button-submit .button-text{
    width: auto;
    line-height: 1;
}
.uc-landing .field {
    position: relative;
    flex: 0 0 calc((100% - 15px) / 2);
}
.uc-landing .field * {
    line-height: 1;
}
.home .widget-area,
.home .site-footer,
.home .site-header{
    display: none !important;
}
.home .site-main{
    padding: 0;
    margin: 0;
}
.uc-landing .logo {
    z-index: 5;
    justify-self: start;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}
.uc-landing .wpcf7 form .wpcf7-response-output {
    margin: 0px;
}
.uc-landing .wpcf7 form .wpcf7-not-valid-tip{
    margin: 5px 15px 5px;
}
.uc-landing .wpcf7 form .wpcf7-response-output,
.uc-landing .wpcf7-not-valid-tip{
    margin: 0px;
    color: rgba(33, 33, 43, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    font-family: Thasadith;
    line-height: normal;
    letter-spacing: 0;
    font-weight: bold;
    font-size: 14px;
}
.uc-landing .wpcf7 form .wpcf7-response-output{
    color: #fff;
    background: var(--uc-card-bg);
    text-shadow:none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: none;
    padding: 5px 10px;
    margin-top: -8px;
}
.uc-landing .wpcf7-spinner{
    left: 50%;
    transform: translateX(-24px);
}
.fold-device.is-unfolded .uc-content-wrap {
    height: 100vh;
    justify-content: center;
}
@media (min-width:993px){
	.uc-content-wrap {
		height: 100vh;
		justify-content: center;
	}
}
@media (max-width: 992px) {
    .uc-card:not(:last-child):after{
        right: -20px;
    }
    .uc-countdown {
        margin: 0 auto 14px;
        gap: 40px;
    }
    .uc-title-wrap {
        margin: 0 auto 14px;
        padding: 5px 20px;
    }
    .uc-number {
        font-size: 24px;
        line-height: 25.5px;
    }
    .uc-label {
        font-size: 10.5px;
        line-height: 1;
    }
    .uc-card {
        padding: 5.75px 5px;
        flex: 0 0 56px;
    }
    .uc-title{
        font-size: 32px;
    }
}
@media (max-width: 992px) {
    .uc-landing .fields{
        /* flex-flow:column; */
    }
    .uc-landing .fields .field{
        /* flex: 0 0 100%; */
    }
    .uc-countdown{
        padding: 0 20px;
    }
    .uc-card:not(:last-child):after{
        /* display:none; */
    }
}

.uc-landing input.wpcf7-form-control[type="text"],
.uc-landing input.wpcf7-form-control[type="email"],
.uc-landing input.wpcf7-form-control[type="tel"],
.uc-landing input.wpcf7-form-control[type="search"],
.uc-landing input.wpcf7-form-control[type="url"],
.uc-landing input.wpcf7-form-control[type="number"],
.uc-landing input.wpcf7-form-control[type="password"],
.uc-landing input.wpcf7-form-control:autofill,
.uc-landing input.wpcf7-form-control:-webkit-autofill,
.uc-landing input.wpcf7-form-control:-internal-autofill-selected,
.uc-landing input.wpcf7-form-control:-webkit-autofill:focus,
.uc-landing input.wpcf7-form-control:-webkit-autofill:hover {
    background:
        linear-gradient(127deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.00) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.10));
    background-clip: padding-box;
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
    backdrop-filter: blur(12px) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.20);
    color: rgba(33, 33, 43, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, transform 120ms ease;
}

.uc-landing input.wpcf7-form-control::placeholder {
    color: rgba(33, 33, 43, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    opacity: 1;
}
.uc-landing input.wpcf7-form-control:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 12px 34px rgba(0, 0, 0, 0.22);
}
.uc-landing input.wpcf7-form-control:focus {
    box-shadow:
        0 0 0 3px rgba(117, 97, 77, 0.20),
        0 16px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.uc-landing input.wpcf7-form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.16);
}
.uc-landing .wpcf7-form .wpcf7-form-control[type="text"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="email"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="tel"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="search"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="url"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="number"],
.uc-landing .wpcf7-form .wpcf7-form-control[type="password"] {
    box-shadow:
        inset 0 0 0 1px rgba(33, 33, 43, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.20);
}



/* =========================================
   IPAD SPECIFIC FIXES (Via JS Detection)
   Target: body.is-ipad
   ========================================= */

/* --- 1. Fix Layout Spacing (Solve "Sticking" issue) --- */
body.is-ipad .uc-countdown {
    gap: 0 !important;              /* Disable flex-gap to avoid Safari issues */
    justify-content: center;        /* Center the grid */
    display: flex;                  /* Ensure flex context */
}

body.is-ipad .uc-card {
    flex: 0 0 auto !important;      /* Prevent card from shrinking */
    width: 70px !important;         /* Fixed width */
    margin-right: 40px !important;  /* Use margin instead of gap */
    overflow: visible !important;   /* Allow pseudo-element (:after) to sit outside */
    position: relative !important;  
    z-index: 1;
}

body.is-ipad .uc-card:last-child {
    margin-right: 0 !important;     /* Remove margin for the last item */
}

/* --- 2. Fix Divider Visibility (Solve ":after" hidden issue) --- */
body.is-ipad .uc-card:not(:last-child):after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    
    /* Position logic: Half of margin-right (40px) */
    right: -21px !important;        
    top: 15% !important;            
    height: 70% !important;         
    width: 1px !important;          
    
    background-color: #4F4744 !important; /* Original divider color */
    opacity: 1 !important;          /* Force visibility */
    z-index: 10 !important;         /* Layer on top */
}

/* --- 3. Fix Viewport & Input Styles --- */
body.is-ipad .uc-content-wrap {
    min-height: -webkit-fill-available;
    min-height: 100vh;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

body.is-ipad .uc-landing input.wpcf7-form-control,
body.is-ipad .uc-landing .button-submit {
    -webkit-appearance: none !important; /* Remove iOS default styling */
    appearance: none !important;
    border-radius: 40px !important;
    background-clip: padding-box;
    margin: 0;
    transform: translateZ(0); /* Hardware acceleration */
}

body.is-ipad .uc-hero-img,
body.is-ipad .uc-hero-video,
body.is-ipad .uc-hero-overlay {
    /* Fallback for inset:0 on older OS */
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%; width: 100%;
}

/* =========================================
   IPAD FORM FIELDS FIX
   Problem: Safari (older iOS) ignores 'gap' in Flexbox.
   Solution: Use margins explicitly for body.is-ipad.
   ========================================= */

body.is-ipad .uc-landing .fields {
    /* 1. Disable gap as it is unreliable on older iPadOS */
    gap: 0 !important; 
    column-gap: 0 !important;
    row-gap: 0 !important;
}

/* 2. Add horizontal spacing manually using margin */
body.is-ipad .uc-landing .fields .field:not(:last-child) {
    margin-right: 15px !important; /* Replaces column-gap: 15px */
}

/* 3. Handle vertical spacing if fields wrap (optional/safety) */
body.is-ipad .uc-landing .fields .field {
    margin-bottom: 5px !important; /* Replaces row-gap: 5px */
}

/* 4. Ensure the last element doesn't push the layout out */
body.is-ipad .uc-landing .fields .field:last-child {
    margin-right: 0 !important;
}
