/* Counter Hero Module Styles */

/* Main Container */
.counter-hero-section {
    background: #F2F7FF;
    padding-top: 80px;
    padding-bottom: 80px;
}

.counter-hero-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
}

/* Component 1: Text and Flags */
.component-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 200px;
    padding-right: 200px;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
}

.migrate-text {
    color: #171D27;
    font-weight: 700;
    font-style: normal;
    font-size: 61.04px;
    line-height: 124%;
    margin: 0;
}

.unlock-text {
    background: linear-gradient(180deg, #DA5EE6 -13.33%, #787AF9 99.65%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-style: normal;
    font-size: 61.04px;
    line-height: 124%;
    margin: 0;
}

.description-text {
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 150%;
    color: #394049;
    margin-top: 16px;
    padding-left: 108px;
    padding-right: 108px;
}

.description-text p {
    margin: 0;
    margin-bottom: 8px;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.flags-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border-top: 1px solid #E4E4E6;
    box-shadow: 0px 1px 2px -1px #0000001A, 0px 1px 3px 0px #0000001A;
    border-radius: 100px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.flag-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.flag-text {
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    color: #394049;
}

/* Component 2: Hurry Text and Countdown */
.component-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.hurry-text {
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    color: #296DF5;
    margin: 0;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 594px;
    max-width: 100%;
    border-radius: 12px;
    padding: 24px 24px 16px 24px;
    background: #FFFFFF;
    box-shadow: 0px 25px 50px -12px #00000040;
}

.countdown-boxes-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-box-wrapper {
    position: relative;
    width: 90px;
    height: 98px;
    overflow: hidden;
    flex-shrink: 0;
}

.countdown-box {
    position: absolute;
    width: 90px;
    height: 98px;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(70.15deg, #0554D2 16.67%, #3286FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.countdown-box.current {
    transform: translateY(0);
    z-index: 2;
}

.countdown-box.next {
    transform: translateY(calc(100% + 24px));
    z-index: 3;
}

.countdown-box.prev {
    transform: translateY(calc(-100% - 24px));
    z-index: 0;
    pointer-events: none;
}

.countdown-number {
    font-weight: 900;
    font-style: normal;
    font-size: 64px;
    line-height: 124%;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.countdown-label {
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 150%;
    color: #066BFC;
    text-align: center;
}

.countdown-separator {
    font-weight: 900;
    font-style: normal;
    font-size: 48px;
    line-height: 124%;
    letter-spacing: -2%;
    color: #3940494D;
    margin: 0 24px;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 16px;
}

/* Component 3: Buttons */
.component-3 {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.btn-book-free {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 36px;
    border-radius: 100px;
    background: linear-gradient(70.15deg, #0554D2 16.67%, #3286FD 100%);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    height: 48px;
}

.btn-book-free:hover {
    opacity: 0.9;
}

.btn-book-free span {
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 150%;
    color: #FFFFFF;
}

.btn-book-free i {
    color: #FFFFFF;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-talk-specialist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 34px;
    border: 2px solid #2D82FD;
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    height: 48px;
}

.btn-talk-specialist:hover {
    opacity: 0.9;
}

.btn-talk-specialist span {
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 150%;
    color: #066BFC;
}

.btn-talk-specialist i {
    color: #066BFC;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Component 4: Footer */
.component-4 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.trusted-text {
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 150%;
    color: #8C9EBB;
    margin: 0;
}

.trust-badges {
    display: flex;
    gap: 56px;
    padding-left: 108px;
    padding-right: 108px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.trust-badge i {
    font-size: 16px;
    color: #646970;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge span {
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    color: #646970;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .component-1 {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 1200px) {
    .component-1 {
        padding-left: 50px;
        padding-right: 50px;
    }

    .countdown-container {
        width: 100%;
        max-width: fit-content;
        padding: 20px;
    }

    .countdown-boxes-row {
        flex-wrap: wrap;
    }

    .countdown-separator {
        margin: 0 16px;
        padding-top: 4px;
    }

    .countdown-box-wrapper {
        width: 70px;
        height: 80px;
    }

    .countdown-box {
        width: 70px;
        height: 80px;
        padding: 12px;
    }

    .countdown-number {
        font-size: 48px;
    }

    .countdown-item {
        gap: 8px;
    }

}

/* Tablet Styles */
@media (min-width: 744px) and (max-width: 1024px) {
    .counter-hero-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .trust-badges {
        gap: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .counter-hero-section .container {
        gap: 40px;
    }

    .component-1 {
        gap: 16px;
    }

    .migrate-text,
    .unlock-text {
        font-size: 48.83px;
    }

    .description-text {
        font-size: 16px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .countdown-container {
        padding: 12px 12px 8px 12px;
    }

    .countdown-box-wrapper {
        width: 71px;
        height: 74px;
    }

    .countdown-box {
        width: 71px;
        height: 74px;
    }

    .countdown-number {
        font-size: 40px;
    }

    .countdown-item {
        gap: 8px;
    }

    .countdown-label {
        font-size: 14px;
        width: 71px;
    }

    /* Buttons (component-3) and Trust Badges (component-4) remain unchanged from desktop */
}

@media (max-width: 743px) {
    .counter-hero-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .counter-hero-section .container {
        gap: 40px;
    }

    .component-1 {
        padding-left: 20px;
        padding-right: 20px;
        gap: 16px;
    }

    .migrate-text,
    .unlock-text {
        font-size: 39px;
    }

    .description-text {
        font-size: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .countdown-container {
        width: 100%;
        padding: 12px 12px 8px 12px;
    }

    .countdown-boxes-row {
        flex-wrap: wrap;
    }

    .countdown-separator {
        margin: 0 8px;
        font-size: 24px;
        padding-top: 4px;
    }

    .countdown-box-wrapper {
        width: 40px;
        height: 42px;
    }

    .countdown-box {
        width: 40px;
        height: 42px;
        padding: 8px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-item {
        gap: 8px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .component-3 {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-book-free,
    .btn-talk-specialist {
        width: 100%;
        justify-content: center;
    }

    .btn-book-free span,
    .btn-talk-specialist span {
        font-size: 14px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }
}

/* Booking Popup Full Screen */
.booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.booking-popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    cursor: pointer;
    overflow-y: auto;
}

.booking-popup-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.booking-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.booking-logo-image {
    max-width: 200px !important;
    height: auto !important;
    display: block !important;
}

.booking-popup-body {
    width: 100% !important;
    max-width: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 80px !important;
}

.booking-title {
    font-weight: 700 !important;
    font-size: 36px !important;
    line-height: 140% !important;
    color: #000000 !important;
    text-align: center !important;
    margin: 0 !important;
}

.booking-card {
    width: 100% !important;
    border: 2px dashed #000000 !important;
    border-radius: 4px !important;
    padding: 24px !important;
    background-color: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    position: relative !important;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.booking-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border: 1px solid #000000 !important;
    border-top-width: 3px !important;
    border-radius: 4px !important;
    pointer-events: none !important;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-service-name {
    font-weight: 600;
    font-size: 18px;
    color: #000000;
}

.booking-checkmark {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.booking-checkmark svg {
    fill: #000000 !important;
    stroke: #000000 !important;
}

.booking-checkmark svg circle {
    fill: #000000 !important;
    stroke: #000000 !important;
}

.booking-checkmark svg path {
    stroke: #FFFFFF !important;
}

.booking-card-description {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #000000;
}

.booking-read-more {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.booking-read-more:hover {
    text-decoration: underline;
}

.booking-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000000;
}

.booking-card-footer svg {
    fill: #000000;
    stroke: #000000;
}

.booking-duration {
    font-weight: 500;
}

.booking-footer-button {
    padding: 8px 24px;
    background-color: #F5F5F5;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-footer-button:hover {
    background-color: #E8E8E8;
}

.booking-footer-button strong {
    color: #000000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .booking-popup-content {
        padding: 20px 16px;
    }

    .booking-title {
        font-size: 20px;
    }

    .booking-card {
        padding: 20px;
    }

    .booking-service-name {
        font-size: 16px;
    }
}