/* Royal Cosmetics Beauty Consultation - Frontend Styles */
/* Mobile-First Responsive Design */

/* Modal Overlay */
.rc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.rc-modal-content {
    background-color: #fff;
    margin: 20px auto;
    max-width: 1000px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close Button */
.rc-close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    transition: all 0.3s;
}

.rc-close:hover,
.rc-close:focus {
    color: #000;
    background: #e0e0e0;
}

/* Modal Inner Layout */
.rc-modal-inner {
    display: flex;
    flex-direction: column;
}

.rc-modal-left {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.rc-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-modal-right {
    padding: 30px 20px;
    width: 100%;
}

/* Progress Bar */
.rc-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.rc-progress {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Form Styles */
#rc-consultation-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

#rc-consultation-form > p,
.rc-step > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.rc-step {
    display: none;
}

.rc-step-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.rc-form-group {
    margin-bottom: 20px;
}

.rc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.rc-form-group input[type="text"],
.rc-form-group input[type="email"],
.rc-form-group input[type="tel"],
.rc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.rc-form-group input:focus,
.rc-form-group select:focus {
    outline: none;
    border-color: #d4af37;
}

/* Checkbox Group */
.rc-checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.rc-checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.rc-checkbox-label:hover {
    border-color: #d4af37;
    background: #fff;
}

.rc-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4af37;
}

.rc-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #d4af37;
}

.rc-checkbox-label span {
    font-size: 14px;
    color: #333;
}

/* Radio Group */
.rc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.rc-radio-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.rc-radio-label:hover {
    border-color: #d4af37;
    background: #fff;
}

.rc-radio-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4af37;
}

.rc-radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #d4af37;
}

.rc-showroom-note {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #0066cc;
    margin-top: 15px;
}

/* Buttons */
.rc-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.rc-next-btn,
.rc-submit-btn {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000;
}

.rc-next-btn:hover,
.rc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.rc-prev-btn {
    background: #f5f5f5;
    color: #333;
}

.rc-prev-btn:hover {
    background: #e0e0e0;
}

.rc-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

/* Success Message */
.rc-success {
    text-align: center;
    padding: 40px 20px;
}

.rc-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    margin: 0 auto 20px;
}

.rc-success h2 {
    color: #333;
    margin-bottom: 15px;
}

.rc-success p {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.rc-close-btn {
    background: #333;
    color: #fff;
    max-width: 200px;
    margin: 0 auto;
}

/* Loading State */
.rc-loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.rc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tablet Styles */
@media (min-width: 600px) {
    .rc-modal-content {
        margin: 40px auto;
    }
    
    .rc-modal-left {
        height: 250px;
    }
    
    .rc-modal-right {
        padding: 40px 30px;
    }
    
    #rc-consultation-form h2 {
        font-size: 28px;
    }
    
    .rc-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rc-btn-group {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .rc-btn {
        width: auto;
        min-width: 140px;
    }
    
    .rc-next-btn,
    .rc-submit-btn {
        margin-left: auto;
    }
}

/* Desktop Styles */
@media (min-width: 900px) {
    .rc-modal-content {
        margin: 60px auto;
        max-height: 85vh;
    }
    
    .rc-modal-inner {
        flex-direction: row;
    }
    
    .rc-modal-left {
        width: 40%;
        height: auto;
        min-height: 600px;
        border-radius: 8px 0 0 8px;
    }
    
    .rc-modal-right {
        width: 60%;
        padding: 50px 40px;
    }
    
    #rc-consultation-form h2 {
        font-size: 32px;
    }
    
    #rc-consultation-form > p,
    .rc-step > p {
        font-size: 16px;
    }
    
    .rc-close {
        right: 20px;
        top: 20px;
    }
}

/* Scrollbar Styling */
.rc-checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.rc-checkbox-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rc-checkbox-group::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.rc-checkbox-group::-webkit-scrollbar-thumb:hover {
    background: #c19a2e;
}

/* Error Messages */
.rc-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.rc-form-group.has-error input,
.rc-form-group.has-error select {
    border-color: #dc3545;
}

.rc-form-group.has-error .rc-error {
    display: block;
}