
/* Modal Styles */
.wizard-overlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-overlay.active, .modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

.wizard-container {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Prevent overflowing screen height */
    overflow-y: auto; /* Enable scrolling for long content */
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    /* Removed overflow: hidden to allow scrolling, handle radius with child if needed */
}

/* Custom scrollbar for wizard container */
.wizard-container::-webkit-scrollbar {
    width: 8px;
}
.wizard-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.wizard-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.wizard-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.wizard-overlay.active .wizard-container, .modal-overlay.active .wizard-container {
    transform: translateY(0);
}

.close-wizard, .close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-wizard:hover, .close-modal:hover {
    color: #333;
}

/* Progress Bar */
.wizard-progress, .progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.03); /* Subtle track */
    z-index: 10;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #1433d6;
    width: 0%;
    transition: width 0.3s ease;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #1433d6;
    background: rgba(20, 51, 214, 0.05);
}

.option-card.selected {
    border-color: #1433d6;
    background: #1433d6;
    color: white;
}

.option-card i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

/* Form Inputs */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #1433d6;
    outline: none;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next {
    background: #1433d6;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: #0a1f8f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 51, 214, 0.3);
}

/* Animation for Wizard Steps */
@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Camera Input Styling */
#customCameras {
    margin-top: 0.5rem;
    width: 80%;
    text-align: center;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    background: transparent;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fdfdfd; /* Changed from #1433d6 to #333 (Black/Dark Gray) */
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#customCameras:focus {
    border-bottom-color: #1433d6;
    outline: none;
    transform: scale(1.05);
}

#customCameras::placeholder {
    color: #ccc;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Hide spin buttons */
#customCameras::-webkit-outer-spin-button,
#customCameras::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#customCameras[type=number] {
    -moz-appearance: textfield;
}

/* Custom Select Dropdown Styling */
.wizard-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background-color: #f9f9f9;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231433d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.3s ease;
}

.wizard-select:hover {
    border-color: #ccc;
    background-color: #fff;
}

.wizard-select:focus {
    border-color: #1433d6;
    box-shadow: 0 0 0 4px rgba(20, 51, 214, 0.1);
    outline: none;
    background-color: #fff;
}

/* Elegant Summary Styles */
.summary-group {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.summary-group-title {
    font-size: 1rem;
    color: #1433d6;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.summary-item.full-width {
    grid-column: span 2;
}

.summary-icon {
    width: 36px;
    height: 36px;
    background: rgba(20, 51, 214, 0.1);
    color: #1433d6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.2rem;
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.summary-value small {
    font-weight: normal;
    color: #666;
    font-size: 0.85rem;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #1433d6 0%, #0a1f8f 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(20, 51, 214, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(20, 51, 214, 0.4);
    background: linear-gradient(135deg, #1a3cfa 0%, #0e26a8 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(20, 51, 214, 0.3);
}

/* Input with Icon Styling */
.input-with-icon {
    position: relative;
    margin-bottom: 1rem;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1433d6;
    z-index: 1;
    font-size: 1.1rem;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem; /* Left padding for icon */
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #1433d6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 51, 214, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn, .btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto 0.5rem; /* Centered */
}

.whatsapp-btn:hover, .btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i, .btn-whatsapp i {
    font-size: 1.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-close, .close-btn {
    background: #f5f5f5;
    color: #333;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-close:hover, .close-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
