/* Checkout Page Styles */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
}

/* Order Form */
.order-form-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

/* Order Methods */
.order-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-method {
    position: relative;
}

.order-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.order-method label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.order-method input[type="radio"]:checked + label {
    border-color: #007bff;
    background-color: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.method-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.method-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Submit Button */
.btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Order Summary */
.order-summary-section {
    position: sticky;
    top: 2rem;
}

.order-summary {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.order-summary h2 {
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Cart Items */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-image {
    flex-shrink: 0;
}

.item-emoji {
    font-size: 2rem;
    display: block;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.item-price {
    margin: 0 0 0.5rem 0;
    color: #007bff;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e9ecef;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.remove-item:hover {
    background-color: #f8d7da;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
}

/* Order Totals */
.order-totals {
    margin-bottom: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.total-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Shipping and Security Info */
.shipping-info,
.security-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.shipping-info h3,
.security-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.shipping-info p,
.security-info p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contact Page Specific Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.contact-form-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 100%;
}

.contact-info-section {
    position: sticky;
    top: 2rem;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.contact-details small {
    color: #999;
    font-size: 0.8rem;
}

.business-hours {
    margin-bottom: 2rem;
}

.business-hours h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.day:last-child {
    border-bottom: none;
}

.social-links h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Thank You Page Styles */
.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.thank-you-card {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.thank-you-title {
    color: #28a745;
    margin-bottom: 1rem;
}

.thank-you-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-support,
.continue-shopping {
    margin: 3.5rem 0 2.5rem;
    text-align: center;
}

.order-details h2,
.next-steps h2,
.contact-support h2,
.continue-shopping h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: #666;
}

.info-row .value {
    font-weight: 600;
    color: #333;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.support-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Thank You Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you-modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}
.thank-you-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.thank-you-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}
.contact-support, .continue-shopping {
  margin-top: 1.5rem;
}
.support-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

/* Loading Overlay */
#loadingOverlay {
  flex-direction: column;
  background: rgba(255,255,255,0.85);
  z-index: 1100;
}
.loading-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 1.2rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  font-size: 1.1rem;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-summary-section,
    .contact-info-section {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-form-section,
    .contact-form-section,
    .order-summary,
    .contact-info {
        padding: 1.5rem;
    }
    
    .thank-you-card {
        padding: 1.5rem 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}