/* Quote Page Styles */

/* Quote Header */
.quote-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.quote-header-content {
    position: relative;
    z-index: 2;
}

.quote-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quote-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.benefit i {
    font-size: 1.3rem;
    color: var(--primary-red-light);
}

/* Quote Form Section */
.quote-form-section {
    padding: 80px 0;
    background: var(--gray-50);
    min-height: 100vh;
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    padding: 30px 40px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 25%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--primary-red-dark);
    color: var(--white);
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-red);
}

/* Form Steps */
.quote-form {
    padding: 40px;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block !important;
}

/* Ensure first step is visible by default */
.form-step[data-step="1"] {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    max-width: 600px;
    margin: 0 auto;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    text-align: center;
}

.step-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    text-align: center;
}

/* Device Selection */
.device-selection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.device-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.device-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.device-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.1);
}

.device-btn.active {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.device-btn i {
    font-size: 1.8rem;
    color: var(--primary-red);
}

.device-btn span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.device-btn.active i {
    color: var(--primary-red-dark);
}

.device-btn.active span {
    color: var(--primary-red-dark);
    font-weight: 700;
}

.next-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.next-btn:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Brand Selection */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brand-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.brand-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.1);
}

.brand-btn.selected {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.brand-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-btn span {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.brand-btn.selected span {
    color: var(--primary-red);
    font-weight: 700;
}

/* Model Selection */
.apple-models, .other-models {
    margin-bottom: 30px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.model-btn {
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: var(--gray-700);
}

.model-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.1);
}

.model-btn.selected {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    color: var(--primary-red);
    font-weight: 600;
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 5px;
    font-style: italic;
}

/* Legacy Device Grid (kept for compatibility) */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.device-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.device-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
}

.device-card.selected {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.device-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.device-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.device-card:hover .device-icon {
    transform: scale(1.1);
}

.device-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.device-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.device-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.device-details {
    background: var(--gray-50);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-details h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
}

/* Problem Categories */
.problem-categories {
    margin-bottom: 30px;
}

.problem-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.problem-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.problem-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.problem-option:hover {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.02);
}

.problem-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.problem-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.problem-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.problem-option input[type="checkbox"]:checked ~ .option-text {
    color: var(--primary-red);
    font-weight: 600;
}

.option-text {
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

.link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

/* Summary */
.summary-container {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 25px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-red);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 600;
    color: var(--gray-600);
}

.summary-item .value {
    color: var(--gray-800);
    font-weight: 500;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.success-content {
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 15px;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-header {
        padding: 120px 0 60px;
    }
    
    .quote-title {
        font-size: 2.5rem;
    }
    
    .quote-subtitle {
        font-size: 1.1rem;
    }
    
    .quote-benefits {
        gap: 20px;
    }
    
    .benefit {
        font-size: 1rem;
    }
    
    .quote-form-container {
        margin: 0 20px;
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .quote-form {
        padding: 30px 20px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .device-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .problem-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .success-content {
        padding: 30px;
        margin: 10px;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .quote-header {
        padding: 100px 0 40px;
    }
    
    .quote-title {
        font-size: 2rem;
    }
    
    .quote-subtitle {
        font-size: 1rem;
    }
    
    .quote-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .device-card {
        padding: 20px 15px;
    }
    
    .device-icon {
        width: 50px;
        height: 50px;
    }
    
    .device-icon i {
        font-size: 1.5rem;
    }
}

/* Warranty Section */
.warranty-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.warranty-card {
    background: var(--white);
    border-radius: 15px;
    border-left: 4px solid var(--primary-red);
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.warranty-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.warranty-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.warranty-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.warranty-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.warranty-content small {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

.warranty-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.warranty-footer p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

.scroll-top-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

.scroll-top-btn:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.scroll-top-btn i {
    font-size: 1.2rem;
}

/* Progress Bar Updates for 6 steps */
.progress-fill {
    width: 16.66%; /* 1/6 for 6 steps */
}

/* Responsive Updates for new elements */
@media (max-width: 768px) {
    .device-selection-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .device-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .device-btn {
        min-width: 100px;
        padding: 15px 20px;
    }
    
    .next-btn {
        width: 100%;
        justify-content: center;
    }
    
    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .warranty-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .warranty-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .device-btn {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .device-btn i {
        font-size: 1.5rem;
    }
    
    .device-btn span {
        font-size: 0.8rem;
    }
    
    .brand-btn {
        padding: 15px;
    }
    
    .brand-btn img {
        width: 30px;
        height: 30px;
    }
    
    .warranty-icon {
        width: 50px;
        height: 50px;
    }
    
    .warranty-icon i {
        font-size: 1.5rem;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
    }
}
