/* Dynamic Form Styles with Multiple Button Styles */

.quote-form-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.form-fields-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.form-field input,
.form-field select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-field input::placeholder {
    color: #9ca3af;
}

.form-field.zip-field input {
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #3b82f6;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-large {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
}

/* Primary - Blue Gradient */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}

/* Success - Green */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,150,105,0.5);
}

/* Warning - Orange */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,119,6,0.5);
}

/* Danger - Red */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 14px rgba(239,68,68,0.4);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,38,38,0.5);
}

/* Dark - Dark Modern */
.btn-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    box-shadow: 0 4px 14px rgba(30,41,59,0.4);
}
.btn-dark:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51,65,85,0.5);
}

/* Outline - Outline Style */
.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}
.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

/* Gradient - Purple */
.btn-gradient {
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #ec4899);
    color: white;
    box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}
.btn-gradient:hover {
    background: linear-gradient(135deg, #7c3aed, #9333ea, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.5);
}

/* Pill - Pill Shape */
.btn-pill {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}
.btn-pill:hover {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8,145,178,0.5);
}

/* Form in hero section */
.hero-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.hero-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.hero-form-subtitle {
    color: #64748b;
    margin-bottom: 24px;
}

/* Button Preview Styles */
.button-preview {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 120px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .quote-form-container {
        padding: 24px;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-form {
        padding: 24px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ===== KEY FIELD STYLES ===== */
.form-field.key-field {
    position: relative;
}

.form-field.key-field label {
    color: #7c3aed;
    font-weight: 700;
}

.key-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    animation: keyFieldPulse 2s ease-in-out infinite;
}

@keyframes keyFieldPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0);
    }
}

.form-field.key-field input,
.form-field.key-field select {
    border-color: #8b5cf6;
    background: linear-gradient(to right, #faf5ff, #ffffff);
}

.form-field.key-field input:focus,
.form-field.key-field select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-field.key-field .radio-label {
    border-color: #8b5cf6;
    background: linear-gradient(to right, #faf5ff, #ffffff);
}

.form-field.key-field .radio-label:hover {
    background: linear-gradient(to right, #f3e8ff, #faf5ff);
}
