/* Book Demo Page Styles */

.book-demo-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: var(--background-base-2, white);
    padding: 90px 0 50px;
    display: flex;
    justify-content: center;
    max-width: 946px ;
    margin: 0 auto;
}

.gototop {
    display: none !important;
}

.book-demo-form-wrapper {
    width: 100%;
    max-width: 640px;
    margin-right: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-demo-back-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: -6px;
    color: var(--text-icon-secondary, rgba(0, 0, 0, 0.59));
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-back-link a {
    color: var(--text-icon-secondary, rgba(0, 0, 0, 0.59));
    text-decoration: none;
}

.book-demo-back-link a:hover {
    text-decoration: underline;
}

.book-demo-back-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-icon-secondary, rgba(0, 0, 0, 0.59));
}

.book-demo-title {
    color: var(--text-icon-primary, black);
    font-size: 48px;
    font-family: 'Roboto Serif', serif;
    font-weight: 300;
    line-height: 48px;
    word-wrap: break-word;
    margin: 0;
}

.book-demo-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-demo-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-demo-field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.required-mark {
    color: var(--text-icon-alert, #F03433);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-input,
.book-demo-select {
    width: 100%;
    height: 52px;
    max-height: 52px;
    min-height: 52px;
    padding: 16px;
    border-radius: 2px;
    outline: 1px solid var(--stroke-input-default, rgba(0, 0, 0, 0.12));
    outline-offset: -1px;
    border: none;
    background: var(--background-input-default, rgba(255, 255, 255, 0));
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
    box-sizing: border-box;
}

.book-demo-input:focus,
.book-demo-select:focus {
    outline: 1px solid var(--stroke-input-focus, black);
    outline-offset: -1px;
}

.book-demo-input.error,
.book-demo-select.error {
    outline: 1px solid var(--stroke-input-error, #F03433);
    outline-offset: -1px;
}

.book-demo-input::placeholder {
    color: var(--text-icon-secondary, rgba(0, 0, 0, 0.59));
}

.book-demo-select-wrapper {
    position: relative;
    width: 100%;
}

.book-demo-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

/* Custom Select Dropdown */
.book-demo-custom-select {
    position: relative;
    width: 100%;
}

.book-demo-custom-select-trigger {
    width: 100%;
    height: 52px;
    max-height: 52px;
    min-height: 52px;
    padding: 16px;
    border-radius: 2px;
    outline: 1px solid var(--stroke-input-default, rgba(0, 0, 0, 0.12));
    outline-offset: -1px;
    border: none;
    background: var(--background-input-default, rgba(255, 255, 255, 0));
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.book-demo-custom-select-trigger:hover {
    outline-color: var(--stroke-input-hover, rgba(0, 0, 0, 0.2));
}

.book-demo-custom-select.open .book-demo-custom-select-trigger {
    outline-color: var(--stroke-input-focus, black);
}

.book-demo-custom-select.error .book-demo-custom-select-trigger {
    outline: 1px solid var(--stroke-input-error, #F03433);
    outline-offset: -1px;
}

.book-demo-custom-select-value {
    flex: 1;
    color: var(--text-icon-primary, black);
}

.book-demo-custom-select-value:empty::before {
    content: 'Not selected';
    color: var(--text-icon-secondary, rgba(0, 0, 0, 0.59));
}

.book-demo-select-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--text-icon-primary, black);
    opacity: 0.5;
    transition: transform 0.2s;
}

.book-demo-custom-select.open .book-demo-select-arrow {
    transform: rotate(180deg);
}

.book-demo-custom-select-dropdown {
    position: fixed;
    z-index: 10000;
    width: 600px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    outline: 1px solid var(--stroke-divider, rgba(0, 0, 0, 0.07));
    outline-offset: -1px;
    backdrop-filter: blur(50px);
    background: var(--background-popup-default, rgba(255, 255, 255, 0.95));
    display: none;
    flex-direction: column;
}

/* Custom scrollbar for dropdown */
.book-demo-custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.book-demo-custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.book-demo-custom-select-dropdown::-webkit-scrollbar-thumb {
    background: var(--background-surface-secondary-default, rgba(0, 0, 0, 0.07));
    border-radius: 1000px;
}

.book-demo-custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--background-surface-secondary-hover, rgba(0, 0, 0, 0.12));
}

.book-demo-custom-select.open .book-demo-custom-select-dropdown {
    display: flex;
}


.book-demo-custom-select-option {
    align-self: stretch;
    height: 52px;
    padding: 16px;
    background: var(--background-popup-default, rgba(255, 255, 255, 0.07));
    border-bottom: 1px solid var(--stroke-divider, rgba(0, 0, 0, 0.07));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.book-demo-custom-select-option:last-child {
    border-bottom: none;
}

.book-demo-custom-select-option:hover {
    background: var(--background-popup-hover, rgba(0, 0, 0, 0.05));
}

.book-demo-custom-select-option-text {
    flex: 1 1 0;
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-custom-select-option-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.book-demo-custom-select-radio {
    width: 24px;
    height: 24px;
    border-radius: 1000px;
    border: 1px solid var(--stroke-surface-secondary-default, rgba(0, 0, 0, 0.12));
    position: relative;
    transition: all 0.2s;
}

.book-demo-custom-select-option.selected .book-demo-custom-select-radio {
    border-color: var(--stroke-surface-primary-default, black);
}

.book-demo-custom-select-option.selected .book-demo-custom-select-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--background-surface-primary-default, black);
}

/* Mobile Drawer - Hidden on desktop by default */
.book-demo-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9998;
    display: none; /* Hidden on desktop */
}



.book-demo-custom-select-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    min-width: calc(100svw - 32px);
    max-width: 328px;
    background: var(--background-base-2, white);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    overflow: hidden;
    display: none; /* Hidden on desktop */
    flex-direction: column;
    transition: transform 0.3s ease-out;
    z-index: 9999;
    max-height: 80vh;
}

.book-demo-drawer-header {
    align-self: stretch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.book-demo-drawer-handle {
    width: 32px;
    height: 4px;
    background: #79747E;
    border-radius: 100px;
}

.book-demo-drawer-title {
    align-self: stretch;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-icon-primary, black);
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 24px;
}

.book-demo-drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.book-demo-drawer-content .book-demo-custom-select-option {
    background: transparent;
}

.book-demo-drawer-content .book-demo-custom-select-option:hover {
    background: var(--background-popup-hover, rgba(0, 0, 0, 0.05));
}

/* Custom scrollbar for drawer */
.book-demo-drawer-content::-webkit-scrollbar {
    width: 8px;
}

.book-demo-drawer-content::-webkit-scrollbar-track {
    background: transparent;
}

.book-demo-drawer-content::-webkit-scrollbar-thumb {
    background: var(--background-surface-secondary-default, rgba(0, 0, 0, 0.07));
    border-radius: 1000px;
}

.book-demo-drawer-content::-webkit-scrollbar-thumb:hover {
    background: var(--background-surface-secondary-hover, rgba(0, 0, 0, 0.12));
}

.book-demo-error {
    display: none; /* hidden by default on page load */
    color: var(--text-icon-alert, #F03433);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
    margin-top: 4px;
}

/* Only show when JS explicitly shows it (via .show() or adding .show class) */
.book-demo-error.show {
    display: block;
}

/* Radio Buttons */
.book-demo-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-demo-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-radio {
    display: none;
}

.book-demo-radio-custom {
    width: 24px;
    height: 24px;
    border-radius: 1000px;
    border: 1px solid var(--stroke-surface-secondary-default, rgba(0, 0, 0, 0.12));
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.book-demo-radio:checked + .book-demo-radio-custom {
    border-color: var(--stroke-surface-primary-default, black);
}

.book-demo-radio:checked + .book-demo-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--background-surface-primary-default, black);
}

.book-demo-radio-custom.error {
    border-color: var(--text-icon-alert, #F03433);
}

/* Checkboxes */
.book-demo-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-demo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-icon-primary, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-checkbox {
    display: none;
}

.book-demo-checkbox-custom {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    border: 1px solid var(--stroke-surface-secondary-default, rgba(0, 0, 0, 0.12));
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.book-demo-checkbox:checked + .book-demo-checkbox-custom {
    background: var(--background-surface-primary-default, black);
    border-color: var(--stroke-surface-primary-default, black);
}

.book-demo-checkbox:checked + .book-demo-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-top: none;
    border-left: none;
}

.book-demo-checkbox-custom.error {
    border-color: var(--text-icon-alert, #F03433);
}

.book-demo-privacy-text {
    flex: 1;
}

.book-demo-privacy-text a {
    color: var(--text-icon-primary, black);
    text-decoration: underline;
}

.book-demo-privacy-text a:hover {
    text-decoration: none;
}

/* Buttons */
.book-demo-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.book-demo-button {
    flex: 1 1 0;
    height: 52px;
    max-height: 52px;
    padding: 16px 24px;
    border-radius: 1000px;
    border: none;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 22.40px;
    letter-spacing: 0.16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.book-demo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.book-demo-button-secondary {
    background: var(--background-surface-secondary-default, rgba(0, 0, 0, 0.07));
    color: var(--text-icon-control-secondary-default, black);
    outline: 1px solid var(--stroke-surface-secondary-default, rgba(0, 0, 0, 0.12));
    outline-offset: -1px;
}

.book-demo-button-secondary:hover:not(:disabled) {
    background: var(--background-surface-secondary-hover, rgba(0, 0, 0, 0.12));
}

.book-demo-button-primary {
    background: var(--background-surface-primary-default, black);
    color: var(--text-icon-control-primary-default, white);
}

.book-demo-button-primary:hover:not(:disabled) {
    background: var(--background-surface-primary-hover, rgba(0, 0, 0, 0.8));
}

.book-demo-button-primary svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Success state */
.book-demo-success {
    width: 100%;
    max-width: 600px;
    padding-top: 58px;

    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

.book-demo-success-icon {
    width: 60px;
    height: 60px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.07);
    outline: 1px rgba(0, 0, 0, 0.20) solid;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-demo-success-icon-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: black;
    position: relative;
}

.book-demo-success-icon-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 16px;
    border: solid white;
    border-width: 0 3px 3px 0;
    border-top: none;
    border-left: none;
}

.book-demo-success-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    text-align: center;
}

.book-demo-success-title {
    color: black;
    font-size: 36px;
    font-family: 'Roboto Serif', serif;
    font-weight: 300;
    line-height: 39.6px;
}

.book-demo-success-text {
    color: black;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-success-button {
    height: 52px;
    max-height: 52px;
    padding: 16px 24px;
    background: var(--background-surface-secondary-default, rgba(0, 0, 0, 0.07));
    border-radius: 1000px;
    outline: 1px var(--stroke-surface-secondary-default, rgba(0, 0, 0, 0.12)) solid;
    outline-offset: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    color: var(--text-icon-control-secondary-default, black);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 22.40px;
    letter-spacing: 0.16px;
}

.book-demo-success-button:hover {
    background: var(--background-surface-secondary-hover, rgba(0, 0, 0, 0.12));
}

/* Error toast */
.book-demo-toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    z-index: 9999;
}

.book-demo-toast-inner {
    height: 48px;
    padding: 12px 24px;
    background: var(--background-error, #540D0D);
    border-radius: 1000px;
    backdrop-filter: blur(50px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.book-demo-toast-text {
    color: var(--text-icon-primary-white, #FFFFFF);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 22.40px;
    letter-spacing: 0.16px;
    text-align: center;
    white-space: nowrap;
}

.book-demo-toast-icon {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.book-demo-toast-icon-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: var(--text-icon-primary-white, #FFFFFF);
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-demo-container {
        padding: 90px 0 56px;
        max-width: 100%;
    }

    .book-demo-form-wrapper {
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }

    .book-demo-back-link {
        left: 16px;
        top: 90px;
        margin-bottom: 0;
    }

    .book-demo-title {
        font-size: 28px;
        line-height: 30.80px;
    }

    .book-demo-input,
    .book-demo-select,
    .book-demo-custom-select-trigger {
        outline: 1px solid var(--stroke-input-default, rgba(0, 0, 0, 0.07));
    }

    /* Hide desktop dropdown on mobile, show drawer */
    .book-demo-custom-select-dropdown {
        display: none !important;
    }
    
    .book-demo-custom-select.open .book-demo-custom-select-dropdown {
        display: none !important;
    }
    
    /* Show drawer on mobile */
    .book-demo-custom-select-drawer {
        display: flex !important;
    }
    
    .book-demo-drawer-overlay {
        display: block !important;
    }

    .book-demo-success-title {
        text-align: left;
    }
    
    .book-demo-custom-select.open .book-demo-drawer-overlay {
        opacity: 0.32;
        visibility: visible;
    }
    
    .book-demo-custom-select.open .book-demo-custom-select-drawer {
        transform: translateX(-50%) translateY(0);
    }

    .book-demo-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .book-demo-success-button {
        display: flex;
        width: 100%;
    }

    .book-demo-button {
        width: 100%;
        align-self: stretch;
    }

    .book-demo-success {
        padding-left:16px;
        padding-top: 58px;
        padding-right:16px;
        margin: 0 auto;
    }
}



