/* DocAI Page Specific Styles */

/* Hero adjustments for DocAI */
.docai-hero {
    padding: 40px 20px 60px;
}

.docai-hero .hero-content {
    margin-top: 20px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-active {
    background: rgba(255, 255, 255, 0.25) !important;
}



.docai-hero .container {
    position: relative;
}

.docai-login {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Login Button in Nav */
.btn-nav-login {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;

    color: var(--white) !important;
}


.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    border-color: white !important;
    transform: translateY(-1px);

    color: var(--white) !important;
}

.btn-nav-logout {
    cursor: pointer;
    font: inherit;
}


/* Pricing Section */
.pricing {
    padding: 80px 20px;
    background: var(--light-bg);
}

.pricing-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: -1.5rem auto 2rem;
    font-size: 1.1rem;
}

/* Customer Info Card */
.customer-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.customer-info-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.customer-info-card > p {
    color: var(--gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

.account-notice {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.account-notice button {
    background: transparent;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.hidden {
    display: none !important;
}

.customer-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.customer-form .form-group {
    margin-bottom: 0;
}

.customer-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.customer-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.customer-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.customer-form .form-group input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.pricing-price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-credits {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--gray-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Pricing Buttons */
.btn-pricing {
    width: 100%;
    padding: 14px 30px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-pricing.btn-featured {
    background: var(--primary-color);
    color: var(--white);
}

.btn-pricing.btn-featured:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-pricing:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Message */
.form-message {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.form-message.warning {
    background: #fef3c7;
    color: #92400e;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--white);
}

/* Loading Spinner */
.btn-pricing.loading {
    position: relative;
    color: transparent !important;
}

.btn-pricing.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-pricing.loading::after {
    border-top-color: var(--white);
}

.btn-pricing:not(.btn-featured).loading::after {
    border-top-color: var(--primary-color);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .docai-login {
        top: 14px;
        right: 14px;
    }

    .customer-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media screen and (max-width: 480px) {
    .pricing-price .amount {
        font-size: 3rem;
    }

    .customer-info-card {
        padding: 1.5rem;
    }
}
