/* Payment Section Styles */
.fee-details {
    background-color: #f8fafc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.fee-amount {
    font-size: 1.1rem;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.fee-value {
    font-weight: bold;
    color: #1a73e8;
}

.fee-description {
    color: #64748b;
    font-style: italic;
    margin-top: 10px;
}

/* Coupon Section Styles */
.coupon-section {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 6px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}

.coupon-input-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.coupon-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #bae6fd;
    border-radius: 4px;
}

.coupon-btn {
    background-color: #0284c7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.coupon-btn:hover {
    background-color: #0369a1;
}

.coupon-message {
    margin-top: 10px;
    min-height: 20px;
}

.coupon-success {
    color: #047857;
    background-color: #d1fae5;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-error {
    color: #b91c1c;
    background-color: #fee2e2;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Payment Container Styles */
.payment-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
}

/* Stripe Elements Styles */
.card-element-container {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#card-element {
    width: 100%;
    padding: 10px 0;
}

.payment-error {
    color: #b91c1c;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    background-color: #fee2e2;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.payment-error:not(:empty) {
    display: block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

.hidden {
    display: none;
}

.payment-instruction {
    margin: 15px 0;
    color: #4b5563;
}

.payment-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.payment-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
    display: inline-block;
    transition: background-color 0.3s;
}

.payment-btn:hover {
    background-color: #1557b0;
}

.verification-btn {
    background-color: #9ca3af;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: not-allowed;
    flex: 1;
    transition: background-color 0.3s;
}

.verification-btn:not([disabled]):hover {
    background-color: #4b5563;
    cursor: pointer;
}

.payment-status-message {
    margin-top: 15px;
    min-height: 20px;
}

/* Payment Success Styles */
.payment-success {
    padding: 20px;
    border-radius: 6px;
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    margin: 20px 0;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 15px;
}

.payment-success h3 {
    color: #047857;
    margin-bottom: 10px;
}

.coupon-details {
    margin-top: 15px;
    text-align: left;
    background-color: white;
    border-radius: 4px;
    padding: 10px 15px;
}

.coupon-details p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

/* Submit Button Styles */
#btn-final-submit {
    background-color: #059669;
}

#btn-final-submit:hover {
    background-color: #047857;
}

#btn-final-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}