:root {
    --tesi-accent: #dd2323;
    --tesi-dark: #1a1a1a;
    --tesi-glass: rgba(255, 255, 255, 0.95);
    --tesi-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body.tesi-popup-open {
    overflow: hidden;
}

.tesi-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tesi-popup.active {
    opacity: 1;
    visibility: visible;
}

.tesi-popup-content {
    background: var(--tesi-glass);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--tesi-shadow);
    max-height: 90vh;
    overflow-y: auto;
}

.tesi-popup.active .tesi-popup-content {
    transform: translateY(0) scale(1);
}

.tesi-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: #f0f0f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 4px;
}

.tesi-popup-close:hover {
    background: var(--tesi-accent);
    color: #fff;
    transform: rotate(90deg);
}

.tesi-popup h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.tesi-popup p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.tesi-popup .field-group {
    margin-bottom: 20px;
}

.tesi-popup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.tesi-popup input[type="text"],
.tesi-popup input[type="tel"],
.tesi-popup input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    outline: none !important;
}

.tesi-popup input:focus {
    border-color: var(--tesi-accent);
}

#tesi-rental-details-summary {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-size: 14px;
}

.tesi-summary-item {
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.tesi-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tesi-total {
    font-size: 18px;
    color: var(--tesi-accent);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed #ddd;
    border-bottom: none;
}

.tesi-submit-btn {
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.tesi-form-response {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.tesi-form-response .success-message {
    padding: 20px 0;
}

.tesi-form-response .success-message h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.tesi-form-response .success-message p {
    color: #666;
}

.tesi-form-response .success {
    color: #27ae60;
}

.tesi-form-response .error {
    color: #c0392b;
}

/* Hide cart in header */
.c-header__main-row-item--cart {
    display: none !important;
}

@media (max-width: 600px) {
    .tesi-popup-content {
        padding: 30px 20px;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
}
.tesi-submit-btn,
.js-inquiry-trigger {
    background-color: #dd2323 !important;
}