/* Square Booking Payment Styles */

#pay-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

#pay-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: var(--accent-gold-bolder);
    opacity: 0.9;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 21px rgba(10, 10, 10, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-close-custom {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.btn-close-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.booking-summary {
    margin-bottom: 0;
}


.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-title::before {
    content: "🔒";
    font-size: 18px;
}

/* Square Card Container */
#square-card-container {
    border-radius: 8px;
    padding: 16px;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

#square-card-container:focus-within {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Square Pay Button */
.btn-square-pay {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bolder));
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-square-pay:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-gold-bolder), var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: white;
}

.btn-square-pay:active:not(:disabled) {
    transform: translateY(0);
}

.btn-square-pay:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Status */
#square-payment-status {
    margin-top: 16px;
}

#square-payment-status .alert {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

#square-payment-status .alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#square-payment-status .alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

#square-payment-status .alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Loading State */
.btn-square-pay:disabled {
    position: relative;
}
/*
.btn-square-pay:disabled::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 576px) {
    .modal-dialog-custom {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .modal-body-custom {
        padding: 20px;
    }
    
    .summary-label,
    .summary-value {
        font-size: 13px;
    }

}
