/* === WARRANTY PAGE STYLES - SAUDI NATIONAL COLORS === */
/* 🇸🇦 Pure Saudi Green (#006C35) + White */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Saudi Green Shades */
    --warranty-green: #006C35;
    --warranty-green-light: #00894a;
    --warranty-green-dark: #005528;
    --warranty-green-pale: #e8f5ed;
    
    /* White/Light Shades */
    --warranty-white: #ffffff;
    --warranty-off-white: #f8faf8;
    --warranty-light: #f5f7f5;
    
    /* Text Colors */
    --warranty-text-dark: rgba(0, 0, 0, 0.85);
    --warranty-text-gray: rgba(0, 0, 0, 0.6);
    
    /* Effects */
    --warranty-glass: rgba(255, 255, 255, 0.85);
    --warranty-shadow: 0 20px 60px rgba(0, 108, 53, 0.2);
    --warranty-shadow-mega: 0 30px 90px rgba(0, 108, 53, 0.3);
    --warranty-blur: blur(20px);
}

.warranty-page-wrapper {
    position: relative;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--warranty-text-dark);
    background: linear-gradient(135deg, #ffffff, #f8faf8, #f5f7f5);
    overflow-x: hidden;
}

/* Animated Particles */
.warranty-gradient-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 70% 40%, rgba(0, 108, 53, 0.05), transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(0, 137, 74, 0.03), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 108, 53, 0.02), transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Container */
.warranty-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.warranty-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    gap: 50px;
}

.warranty-hero-text {
    flex: 1;
    max-width: 600px;
}

.warranty-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--warranty-text-dark);
}

.highlight-warranty {
    background: linear-gradient(135deg, var(--warranty-green), var(--warranty-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(10deg) brightness(1.1); }
}

.warranty-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--warranty-text-gray);
}

.warranty-btn-primary {
    position: relative;
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--warranty-white);
    background: linear-gradient(135deg, var(--warranty-green), var(--warranty-green-light));
    box-shadow: var(--warranty-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.warranty-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--warranty-shadow-mega);
}

.warranty-btn-primary .btn-glow {
    position: absolute;
    top:0; left:-100%; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.warranty-btn-primary:hover .btn-glow {
    left: 100%;
}

/* Hero Image */
.warranty-hero-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--warranty-shadow);
    transition: transform 0.6s ease;
    border: 2px solid rgba(0, 108, 53, 0.15);
}

.warranty-hero-image img:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Plans Section */
.warranty-plans {
    margin: 120px 0;
    text-align: center;
}

.section-header-warranty {
    margin-bottom: 60px;
    position: relative;
}

.section-title-warranty {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--warranty-text-dark), rgba(0, 0, 0, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.section-title-warranty::before,
.section-title-warranty::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warranty-green));
}

.section-title-warranty::before { left: 0; }
.section-title-warranty::after { right: 0; background: linear-gradient(90deg, var(--warranty-green), transparent); }

.section-divider-warranty {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--warranty-green), var(--warranty-green-light), transparent);
    margin: 25px auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 108, 53, 0.4);
    animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 108, 53, 0.4);
        transform: scaleX(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 108, 53, 0.6);
        transform: scaleX(1.1);
    }
}

.plans-grid-warranty {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

/* Plan Cards */
.plan-card-warranty {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 248, 0.9));
    backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 50px 35px;
    border: 2px solid rgba(0, 108, 53, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Animated gradient border */
.plan-card-warranty::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        var(--warranty-green), 
        var(--warranty-green-light),
        transparent,
        transparent);
    border-radius: 28px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.plan-card-warranty:hover::before {
    opacity: 1;
}

/* Top glow bar */
.plan-card-warranty::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        transparent,
        var(--warranty-green),
        var(--warranty-green-light),
        transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 20px var(--warranty-green);
}

.plan-card-warranty:hover::after {
    opacity: 1;
}

.plan-card-warranty:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 
        0 30px 80px rgba(0, 108, 53, 0.2),
        0 0 60px rgba(0, 108, 53, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(0, 108, 53, 0.3);
}

/* Plan Title */
.plan-title-warranty {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--warranty-green), var(--warranty-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-title-warranty::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--warranty-green), transparent);
    border-radius: 10px;
}

/* Plan Description */
.plan-description-warranty {
    color: var(--warranty-text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 400;
}

/* Plan Price */
.plan-price-warranty {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--warranty-text-dark);
    padding: 12px 30px;
    background: linear-gradient(135deg, 
        rgba(0, 108, 53, 0.1), 
        rgba(0, 137, 74, 0.08));
    border-radius: 50px;
    border: 2px solid rgba(0, 108, 53, 0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 108, 53, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.4s ease;
}

.plan-price-warranty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.plan-card-warranty:hover .plan-price-warranty::before {
    left: 100%;
}

.plan-card-warranty:hover .plan-price-warranty {
    border-color: var(--warranty-green);
    box-shadow: 
        0 8px 35px rgba(0, 108, 53, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transform: scale(1.05);
}

/* Plan Features List */
.plan-features-warranty {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    text-align: left;
}

.plan-features-warranty li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: rgba(0, 108, 53, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 108, 53, 0.08);
    color: var(--warranty-text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-features-warranty li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--warranty-green), var(--warranty-green-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-features-warranty li:hover {
    background: rgba(0, 108, 53, 0.06);
    border-color: rgba(0, 108, 53, 0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 108, 53, 0.1);
}

.plan-features-warranty li:hover::before {
    opacity: 1;
}

.plan-features-warranty li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--warranty-green);
    background: rgba(0, 108, 53, 0.1);
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 108, 53, 0.2);
    transition: all 0.3s ease;
}

.plan-features-warranty li:hover svg {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 108, 53, 0.4);
}

/* No Plans Text */
.no-plans-text {
    grid-column: 1 / -1;
    padding: 60px 30px;
    font-size: 1.2rem;
    color: var(--warranty-text-gray);
    background: rgba(0, 108, 53, 0.03);
    border-radius: 20px;
    border: 2px dashed rgba(0, 108, 53, 0.15);
}

/* Error Alert */
.warranty-error-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 24px;
    margin: 30px auto;
    max-width: 800px;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 16px;
    color: #dc2626;
    animation: slideDownWarranty 0.5s ease;
    backdrop-filter: blur(10px);
}

.warranty-error-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.warranty-error-alert strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warranty-error-alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-error-alert li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.warranty-error-alert li::before {
    content: '•';
    position: absolute;
    left: 5px;
}

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

/* Warranty Form Section */
.warranty-form-section {
    margin: 100px 0;
    text-align: center;
}

.form-header {
    margin-bottom: 50px;
}

.form-title-warranty {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--warranty-text-dark), rgba(0, 0, 0, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle-warranty {
    color: var(--warranty-text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.warranty-form {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    background: var(--warranty-glass);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 2px solid rgba(0, 108, 53, 0.1);
    display: grid;
    gap: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.08), 
                0 0 0 1px rgba(0, 108, 53, 0.05) inset;
    transition: all 0.4s ease;
}

.warranty-form:hover {
    border-color: rgba(0, 108, 53, 0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.1), 
                0 0 40px rgba(0, 108, 53, 0.1),
                0 0 0 1px rgba(0, 108, 53, 0.1) inset;
}

.warranty-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warranty-green), transparent);
    opacity: 0.6;
}

.form-group-warranty {
    text-align: left;
    position: relative;
}

.warranty-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--warranty-text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.warranty-form label::after {
    content: '*';
    color: var(--warranty-green);
    margin-left: 4px;
}

.warranty-form input,
.warranty-form select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid rgba(0, 108, 53, 0.15);
    outline: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--warranty-text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

.warranty-form input:hover,
.warranty-form select:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0, 108, 53, 0.25);
}

.warranty-form input:focus,
.warranty-form select:focus {
    border-color: var(--warranty-green);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1),
                0 8px 20px rgba(0, 108, 53, 0.1);
    transform: translateY(-2px);
}

.warranty-form input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.warranty-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23006C35' 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 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.warranty-form select option {
    background: #ffffff;
    color: var(--warranty-text-dark);
    padding: 12px;
}

/* Textarea Styling */
.warranty-textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid rgba(0, 108, 53, 0.15);
    outline: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--warranty-text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    min-height: 120px;
}

.warranty-textarea:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0, 108, 53, 0.25);
}

.warranty-textarea:focus {
    border-color: var(--warranty-green);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.1),
                0 8px 20px rgba(0, 108, 53, 0.1);
    transform: translateY(-2px);
}

.warranty-textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Optional Label Styling */
.warranty-optional-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-optional-label::after {
    display: none !important;
}

.warranty-optional-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--warranty-text-gray);
    background: rgba(0, 108, 53, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: lowercase;
    letter-spacing: 0;
}

.warranty-error-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 500;
    padding-left: 8px;
}

.warranty-btn-form {
    padding: 18px 50px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--warranty-green), var(--warranty-green-light));
    color: var(--warranty-white);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 108, 53, 0.3);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.warranty-btn-form::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.warranty-btn-form:hover::before {
    width: 400px;
    height: 400px;
}

.warranty-btn-form:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 108, 53, 0.4);
}

.warranty-btn-form:active {
    transform: translateY(-2px) scale(0.98);
}

/* Input Focus Enhancement */
.form-group-warranty::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--warranty-green), var(--warranty-green-light));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.form-group-warranty:focus-within::before {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .warranty-hero { flex-direction: column; text-align: center; }
    .warranty-hero-text { max-width: 100%; }
    .warranty-hero-image img { max-width: 100%; }
    .plans-grid-warranty { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .warranty-plans { margin: 80px 0; }
    .section-title-warranty { font-size: 2.2rem; }
    .plans-grid-warranty { grid-template-columns: 1fr; gap: 30px; }
    .plan-card-warranty { padding: 40px 30px; }
    .warranty-form { padding: 35px 25px; }
    .form-title-warranty { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .warranty-container { padding: 0 15px; }
    .warranty-title { font-size: 2rem; }
    .warranty-btn-primary, .warranty-btn-form { width: 100%; text-align: center; }
    .warranty-form { padding: 30px 20px; }
    .plan-card-warranty { padding: 35px 25px; }
    .plan-title-warranty { font-size: 1.5rem; }
    .plan-features-warranty li { font-size: 0.9rem; padding: 12px 15px; }
}

@media (max-width: 320px) { .warranty-hero { margin-top: 70px; } }
@media (max-width: 376px) { .warranty-hero { margin-top: 70px; } }
@media (max-width: 426px) { .warranty-hero { margin-top: 70px; } }
@media (max-width: 769px) { .warranty-hero { margin-top: 70px; } }
@media (max-width: 1025px) { .warranty-hero { margin-top: 70px; } }