/* Square Picker Styles */
.square-picker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.square-picker-header {
    text-align: center;
    margin-bottom: 30px;
}

.square-picker-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.square-picker-info {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.square-picker-info p {
    margin: 5px 0;
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.square {
    aspect-ratio: 1;
    border: 2px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.square:hover:not(.taken):not(.selected) {
    background: #e8f4f8;
    border-color: #0073aa;
    transform: scale(1.05);
}

.square.selected {
    background: #0073aa;
    color: #fff;
    border-color: #005177;
}

.square.taken {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.square-selection-summary {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.selected-squares {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.selected-square-badge {
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin: 15px 0;
}

.proceed-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.proceed-btn:hover {
    background: #005177;
}

.proceed-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Checkout Form Styles */
.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.order-summary h3 {
    margin-top: 0;
    color: #333;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.order-summary-row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
}

.submit-btn {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #005177;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.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;
}

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

/* Responsive */
@media (max-width: 768px) {
    .square-grid {
        gap: 3px;
    }
    
    .square {
        font-size: 12px;
    }
    
    .checkout-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .square-grid {
        gap: 2px;
    }
    
    .square {
        font-size: 10px;
    }
}
