/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Fonts: Playfair Display for Headings (matches image), Lato for Body */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Lato', sans-serif;
    background-color: #FFFAF4; /* Warm cream background */
    color: #4A3B32; /* Soft dark brown for text */
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    background-image: radial-gradient(#E8DCCA 1px, transparent 1px);
    background-size: 40px 40px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Card Design */
.checkout-wrapper {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(139, 94, 60, 0.1); /* Warm shadow */
    overflow: hidden;
    border: 1px solid #E6D5C3;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Section */
.checkout-title {
    background: #FFFFFF;
    color: #8B5E3C; /* Bronze/Brown from headings */
    padding: 40px 40px 20px;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    position: relative;
}

.checkout-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #D4AF37; /* Gold accent */
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Form Layout */
.checkout-form {
    padding: 20px 50px 50px;
}

.form-section {
    margin-bottom: 40px;
    position: relative;
}

/* Section Headings */
.form-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4A3B32;
    margin-bottom: 25px;
    border-bottom: 1px solid #F0E6DC;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2::before {
    content: '✦'; /* Sacred symbol */
    color: #D4AF37;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6D5645;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs */
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0D0C0;
    border-radius: 6px;
    font-size: 16px;
    background: #FFFEFC;
    color: #4A3B32;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B5E3C;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1);
}

.form-group input::placeholder {
    color: #B0A090;
}

/* Primary Button - Matches "Book your leaf finding" */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #9E5E28 0%, #8B4A18 100%); /* Deep Bronze Gradient */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif; /* Clean font for action */
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(139, 74, 24, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 74, 24, 0.4);
    background: linear-gradient(135deg, #A8662E 0%, #96521E 100%);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* Error Messages */
.error-message {
    background: #FDF2F2;
    color: #9B2C2C;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #C53030;
    font-size: 14px;
}

/* Loading State */
.loading-overlay {
    text-align: center;
    padding: 30px;
    color: #8B5E3C;
}

.spinner {
    border: 3px solid #F0E6DC;
    border-top: 3px solid #8B5E3C;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-form {
        padding: 20px 25px 40px;
    }
    
    .checkout-title {
        font-size: 26px;
        padding: 30px 20px 15px;
    }

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