/* Premium Design for Virtual Fitting Room Modal */

.pv-button-wrapper {
    margin: 20px 0;
}

.pv-btn {
    background-color: var(--pv-primary-color, #000) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pv-btn:hover {
    opacity: 0.9 !important;
}

/* Modal Overlay */
.pv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pv-modal-overlay.pv-show {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.pv-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pv-modal-overlay.pv-show .pv-modal-content {
    transform: translateY(0);
}

.pv-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pv-close-btn:hover {
    color: #333;
}

.pv-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.pv-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.pv-modal-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.pv-form-group {
    margin-bottom: 15px;
}

.pv-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.pv-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.pv-form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.pv-submit-btn {
    width: 100%;
    background-color: var(--pv-primary-color, #000);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.pv-submit-btn:hover {
    opacity: 0.9;
}

.pv-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pv-secondary-btn {
    background-color: #f1f1f1;
    color: #333;
    margin-top: 15px;
}

.pv-secondary-btn:hover {
    background-color: #e1e1e1;
}

#pv-result-container {
    text-align: center;
    padding-top: 10px;
}

#pv-result-container h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.pv-result-size {
    font-size: 48px;
    font-weight: 800;
    color: var(--pv-primary-color, #000);
    margin-bottom: 20px;
    line-height: 1;
}

.pv-error-msg {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

/* Split Layout */
.pv-modal-wide {
    max-width: 750px;
}

.pv-modal-split {
    display: flex;
    gap: 30px;
    align-items: center;
}

.pv-modal-left {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.pv-modal-right {
    flex: 1;
}

.pv-guide-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pv-guide-text {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.pv-form-row {
    display: flex;
    gap: 15px;
}

.pv-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.pv-form-row .half {
    flex: 1;
}

@media (max-width: 600px) {
    .pv-modal-split {
        flex-direction: column;
    }
    .pv-modal-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }
    .pv-form-row {
        flex-direction: column;
        gap: 0;
    }
}
