/* T-Shirt Order Form Styles */
.tshirt-order-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tshirt-order-form-container h2 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.form-section h3 {
    color: #555;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.shirt-order {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.shirt-order h4 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-shirt-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-shirt-btn:hover {
    background: #c82333;
}

.add-shirt-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
}

.add-shirt-btn:hover {
    background: #218838;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Order Total Preview */
.order-total-preview {
    background: #f8f9fa;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.total-breakdown h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
    text-align: center;
}

#total-breakdown-content {
    margin-bottom: 15px;
}

#total-breakdown-content p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.total-item:last-child {
    border-bottom: none;
}

.total-item .item-details {
    color: #333;
}

.total-item .item-price {
    font-weight: bold;
    color: #0073aa;
}

.total-amount {
    background: #f8f9fa;
    color: #333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}

.total-amount strong {
    font-size: 16px;
    color: #0073aa;
}

/* Special pricing note */
.pricing-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Order number styling */
#order-number {
    font-family: monospace;
    font-weight: bold;
    color: #1976d2;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #2196f3;
}

/* Modal Payment Section */
.payment-section {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.payment-section h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    flex: 1;
}

.payment-option:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
}

.in-person-option {
    cursor: default;
    background: #f0f8ff;
    border-color: #4CAF50;
}

.in-person-option:hover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.payment-option .payment-icon {
    font-size: 24px;
    margin-right: 12px;
}

.payment-details {
    display: flex;
    flex-direction: column;
}

.payment-details strong {
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.payment-details span {
    font-size: 12px;
    color: #666;
}

.payment-instructions {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.payment-instructions p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.payment-instructions p:first-child {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    color: #1976d2;
}

.payment-instructions p:last-child {
    margin-bottom: 0;
}

.payment-total {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
    margin: 15px 0 0 0;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
}

/* Responsive payment options */
@media (max-width: 768px) {
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-option {
        padding: 10px 12px;
    }
}

.submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.submit-btn:hover {
    background: #005a87;
}

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

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-messages p {
    margin: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tshirt-order-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .shirt-order h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #28a745;
    font-size: 24px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body {
    padding: 0 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #333;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-close-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.modal-close-btn:hover {
    background: #005a87;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 0 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
}
