/* Purchase Request Page Styles */

.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.purchase-section {
    padding: 80px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.purchase-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.product-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #1a1a2e;
}

.product-card-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.product-card-summary img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card-summary h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.product-card-summary p {
    color: #666;
    line-height: 1.6;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c9a961, #d4af37);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.3);
}

.back-button i {
    font-size: 0.9rem;
}

.purchase-form-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.form-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.purchase-form .form-group {
    margin-bottom: 25px;
}

.purchase-form label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
}

.purchase-form input,
.purchase-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.purchase-form input:focus,
.purchase-form textarea:focus {
    outline: none;
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c9a961, #d4af37);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .purchase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .purchase-section {
        padding: 60px 15px;
    }
    
    .page-banner h1 {
        font-size: 2.25rem;
    }
    
    .product-summary h2,
    .purchase-form-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .product-card-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 60px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 1.875rem;
    }
    
    .purchase-section {
        padding: 60px 10px;
    }
    
    .product-card-summary {
        padding: 20px;
    }
    
    .purchase-form input,
    .purchase-form textarea {
        font-size: 0.95rem;
    }
}
