/* Product Modal Animations */
.product-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-content {
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal.is-active .product-modal-content {
    transform: translateY(0);
}

/* Modal Core UI Styling */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 60px 50px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    overflow-y: auto;
    max-height: 90vh;
}

.product-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.product-modal-header {
    text-align: left;
    margin-bottom: 35px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #4a3c33;
    margin: 0 0 5px;
    line-height: 1.2;
}

.modal-subtitle {
    font-family: var(--font-label);
    font-size: 16px;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* CF7 UI Theme styles inside Modal */
.product-modal-body .wpcf7-form p {
    margin-bottom: 20px;
}

.product-modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 8px;
    color: #4a3c33;
}

.product-modal-body label span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: #333;
}

.product-modal-body .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.product-modal-body .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
}

.product-modal-body .wpcf7-acceptance .wpcf7-list-item-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: #666;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.product-modal-body .wpcf7-acceptance a {
    color: #4a3c33;
    text-decoration: underline;
    font-weight: 500;
}

.product-modal-body input[type="text"],
.product-modal-body input[type="email"],
.product-modal-body textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 6px;
}

.product-modal-body fieldset {
    display: none !important;
}

.product-modal-body .wpcf7-submit {
    background: #4a3c33;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .product-modal-content {
        padding: 40px 25px 30px;
    }
}
