/* Pricing Contact Form Styles */

.pricing-contact-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    padding: 0;
    opacity: 0;
}

.pricing-contact-form-wrapper.active {
    max-height: 1200px;
    margin-top: 3rem;
    padding: 2rem 0 4rem 0;
    opacity: 1;
}

.pricing-contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(70, 103, 237, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-contact-form-wrapper.active .pricing-contact-form {
    transform: translateY(0);
}

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

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Package Selection */
.package-selection {
    margin-bottom: 2rem;
}

/* Billing Toggle Section */
.billing-toggle-section {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.billing-toggle .toggle-label {
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.billing-toggle .toggle-label.active {
    color: #6667ed;
}

.billing-toggle .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.billing-toggle .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-toggle .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 26px;
}

.billing-toggle .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.billing-toggle input:checked + .toggle-slider {
    background-color: #6667ed;
}

.billing-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.billing-toggle .discount-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.package-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.package-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.package-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.package-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(70, 103, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.package-btn:hover::before {
    left: 100%;
}

.package-btn:hover {
    border-color: #6667ed;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 103, 237, 0.15);
}

.package-btn.active {
    border-color: #6667ed !important;
    background: linear-gradient(135deg, #6667ed 0%, #5a5bdd 100%) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(102, 103, 237, 0.4) !important;
}

.package-btn.active::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid white;
    animation: checkmark-bounce 0.3s ease-out;
}

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.package-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.package-btn.active .package-name {
    color: white !important;
    font-weight: 800 !important;
}

.package-price {
    color: #6667ed;
    font-weight: 600;
    font-size: 0.95rem;
}

.package-btn.active .package-price {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700 !important;
}

/* Form Fields */
.form-fields {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6667ed;
    box-shadow: 0 0 0 3px rgba(102, 103, 237, 0.1);
    background: rgba(70, 103, 237, 0.02);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-submit {
    background: linear-gradient(135deg, #6667ed 0%, #8b5cf6 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 103, 237, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-cancel {
    background: white;
    border: 2px solid #e5e7eb;
    color: #64748b;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #374151;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .package-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
}

/* Animation for form appearance */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pricing-contact-form-wrapper.active .pricing-contact-form {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success/Error States */
.form-group.success input,
.form-group.success textarea {
    border-color: #10b981;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.form-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}