/* website/css/buy.css */

/* Header Styling */
.pricing-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9fbfd;
}
.pricing-header h1 {
    color: #0000AF;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.pricing-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- NEW: Improved User ID Section --- */
.user-id-section {
    background: white;
    padding: 30px; /* More padding */
    border-radius: 8px;
    display: inline-block;
    border: 3px solid #0000AF; /* Thicker, Blue Border */
    margin-bottom: 30px;
    text-align: left;
    min-width: 400px; /* Wider box */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Add shadow for pop */
}

.user-id-section label {
    display: block;
    font-weight: 800; /* Extra Bold */
    font-size: 1.2rem; /* Larger text */
    margin-bottom: 10px;
    color: #0000AF; /* Corporate Blue */
}

.user-id-section input {
    width: 100%;
    padding: 15px; /* Taller input field */
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem; /* Larger typing text */
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.user-id-section input:focus {
    border-color: #0000AF;
    outline: none;
}

.user-id-section input.valid {
    border-color: #28a745; /* Green border when valid */
    background-color: #f0fff4;
}

.user-id-section input.invalid {
    border-color: #dc3545 !important; /* Red border when invalid */
    background-color: #fff0f0; /* Optional: light red background */
}

.user-id-section .hint {
    font-size: 0.95rem; /* Larger hint */
    font-weight: 500;
    color: #dc3545; /* Red initially */
    margin: 8px 0 0 0;
}
/* --- END NEW SECTION --- */


/* Currency Selector */
.currency-selector {
    margin-top: 10px;
}
.currency-selector label {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}
.currency-selector select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    cursor: pointer;
}

/* Pricing Grid */
.pricing-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-category {
    margin-bottom: 60px;
}
.pricing-category h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Card Styling */
.pricing-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Featured Card (Pop) */
.pricing-card.featured {
    border: 2px solid #0000AF;
    background-color: #fdfdfd;
    transform: scale(1.05);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}
.pricing-card.featured::after {
    content: "BEST VALUE";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0000AF;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.pricing-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}

.credits {
    font-weight: bold;
    color: #555;
    margin: 15px 0;
    font-size: 1.1rem;
}

.price {
    font-size: 2rem;
    color: #0000AF;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-buy {
    background-color: white;
    color: #0000AF;
    border: 2px solid #0000AF;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-buy:hover {
    background-color: #0000AF;
    color: white;
}

/* Featured button style */
.pricing-card.featured .btn-buy {
    background-color: #0000AF;
    color: white;
}
.pricing-card.featured .btn-buy:hover {
    background-color: #000080;
}

/* --- DISABLED BUTTON STATE (THE FIX) --- */
/* We use !important to ensure this overrides all other styles */
.btn-buy:disabled,
.pricing-card.featured .btn-buy:disabled {
    background-color: #e0e0e0 !important;
    border-color: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}