/* styles.css - Final Merged Version */
body {
    font-family: Arial, sans-serif;
    background: #f9f3ef;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: #f3ece6;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

h1, h2, h3 {
    text-align: center;
    color: #a77d5e;
    margin-top: 0;
}

h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

input, select, button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn {
    background: #c89d7c;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
}

.btn:hover {
    background: #a77d5e;
}

.user-actions {
    text-align: center;
    margin-bottom: 20px;
}

.user-actions .btn {
    display: inline-block;
    width: auto;
    margin: 0 5px;
    padding: 10px 15px;
}

/* Card Element Styles */
#card-element-container {
    margin: 20px 0;
}

#card-element {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    border: 1px solid #ddd;

    transition: box-shadow 150ms ease;
}

#card-element.StripeElement--focus {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    border-color: #6772e5;
}

#card-element.StripeElement--invalid {
    border-color: #fa755a;
}

#card-element.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

#card-errors {
    color: #fa755a;
    margin-top: 5px;
}

/* Form Elements */
select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.required {
    color: red;
}

.error {
    border-color: red !important;
}

/* Summary Sections */
.payment-summary {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.summary-item.total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 1.1em;
}

.summary-item span:first-child {
    color: #666;
}

.summary-item span:last-child {
    font-weight: 500;
}

/* Gift Aid Section */
#gift-aid-example {
    padding: 10px;
    background: #f8f8f8;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 15px 0;
}

#gift-aid-checkbox {
    width: auto;
    margin-right: 10px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 20px auto;
        border-radius: 0;
    }
    
    input, select, button {
        padding: 10px;
        font-size: 14px;
    }
    
    #card-element {
        padding: 10px;
        font-size: 14px;
    }
    
    .user-actions .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    h1, h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 10px 5px;
        margin: 10px auto;
    }
    
    input, select, button {
        padding: 8px;
    }
    
    .summary {
        font-size: 14px;
    }
}