/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Compact Header */
.header-compact {
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-compact h1 {
    color: #1a1a1a;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

/* Order Summary Bar */
.order-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-size: 0.9em;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-label {
    font-weight: 600;
    color: #666;
}

.summary-value {
    color: #333;
}

/* Form Container */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Two Column Layout */
.column-layout {
    display: flex;
    gap: 20px;
    flex: 1;
}

.left-column,
.right-column {
    flex: 1;
}

/* Compact Sections */
.section-compact {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.section-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title-compact {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Compact Form Groups */
.form-group-compact {
    margin-bottom: 10px;
}

.form-row-compact {
    display: flex;
    gap: 10px;
}

.form-group-compact.half {
    flex: 1;
}

.form-group-compact label {
    display: block;
    margin-bottom: 3px;
    color: #555;
    font-weight: 500;
    font-size: 0.9em;
}

/* Compact Input Styles */
.form-group-compact input[type="text"],
.form-group-compact input[type="email"],
.form-group-compact input[type="tel"],
.form-group-compact input[type="number"],
.form-group-compact input[type="date"],
.form-group-compact select,
.form-group-compact textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group-compact textarea {
    resize: vertical;
    min-height: 50px;
    max-height: 80px;
}

.form-group-compact input:focus,
.form-group-compact select:focus,
.form-group-compact textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Checkbox Styles */
.checkbox-label-compact {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    line-height: 1.3;
}

.checkbox-label-compact input[type="checkbox"] {
    margin-right: 6px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label-compact span {
    color: #d32f2f;
}

.checkbox-label-compact a {
    color: #4CAF50;
    text-decoration: underline;
}

.checkbox-compact {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.checkbox-compact input[type="checkbox"] {
    margin-right: 6px;
}

/* Shipping fields container */
#shipping_fields {
    transition: all 0.3s ease;
}

/* Submit Section */
.submit-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 5px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #45a049;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.submit-btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Production time note */
.production-time-note {
    display: block;
    font-size: 0.75em;
    color: #666;
    margin-top: 2px;
    font-style: italic;
}

/* Error Messages */
.error {
    color: #f44336;
    font-size: 0.8em;
    margin-top: 2px;
    display: none;
}

.error-container {
    background-color: white;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.error-container .error-message {
    color: #f44336;
    font-size: 1em;
    margin-bottom: 15px;
}

.back-button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.back-button:hover {
    background-color: #45a049;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-compact {
        padding: 12px 15px;
    }

    .header-compact h1 {
        font-size: 1.3em;
    }

    .order-summary {
        gap: 10px;
        font-size: 0.85em;
    }

    .form-container {
        padding: 15px;
    }

    /* Stack columns on mobile */
    .column-layout {
        flex-direction: column;
        gap: 0;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    /* Ensure form rows stack properly */
    .form-row-compact {
        flex-wrap: wrap;
    }

    .form-group-compact.half {
        min-width: calc(50% - 5px);
    }

    /* Full width for city/state/zip on mobile */
    @media (max-width: 480px) {
        .form-row-compact .form-group-compact {
            min-width: 100%;
        }
    }

    .section-compact {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .submit-section {
        margin-top: 20px;
    }
}

/* Desktop specific - ensure everything fits on one screen */
@media (min-width: 769px) and (min-height: 700px) {
    body {
        overflow-y: auto;
    }

    .container {
        height: 100vh;
        max-height: 100vh;
    }

    .form-container {
        overflow-y: auto;
    }

    /* Fine-tune spacing for desktop */
    .section-compact {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .form-group-compact {
        margin-bottom: 8px;
    }

    .form-group-compact input,
    .form-group-compact select,
    .form-group-compact textarea {
        padding: 5px 8px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }

    .header-compact h1 {
        font-size: 1.2em;
    }

    .order-summary {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .form-container {
        padding: 10px;
    }
}
/* ===== SUCCESS PAGE SPECIFIC STYLES ===== */
/* Add these styles to your main.css file */

/* Success Page Container Override */
.success-page-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Success Icon Wrapper */
.success-icon-wrapper {
    margin: 20px auto 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

/* Animated Checkmark */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: rotate 0.4s ease-in-out;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: #f5f5f5;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #4CAF50;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(-45deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Success Content */
.success-content {
    padding: 0 20px;
}

.success-main-message {
    font-size: 1.05em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Success Details Box */
.success-details-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px auto;
    max-width: 450px;
    border: 1px solid #e9ecef;
}

.success-details-box h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Success Steps List */
.success-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.success-steps li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #666;
    font-size: 0.95em;
}

.success-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
}

.success-steps li:last-child {
    margin-bottom: 0;
}

/* Success Return Button */
.success-return-btn {
    display: inline-block;
    text-decoration: none;
    min-width: 200px;
    transition: all 0.3s ease;
}

.success-return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Mobile Responsive for Success Page */
@media (max-width: 768px) {
    .success-page-container {
        padding: 15px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .checkmark {
        width: 70px;
        height: 70px;
    }

    .success-content {
        padding: 0 10px;
    }

    .success-main-message {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .success-details-box {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .success-details-box h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .success-steps li {
        font-size: 0.9em;
        margin-bottom: 12px;
        padding-left: 25px;
    }

    .success-return-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .success-icon {
        width: 60px;
        height: 60px;
    }

    .checkmark {
        width: 60px;
        height: 60px;
    }

    .success-main-message {
        font-size: 0.95em;
    }

    .success-steps li {
        font-size: 0.85em;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .success-details-box {
        padding: 15px 12px;
    }

    .success-steps li {
        padding-left: 20px;
        font-size: 0.83em;
    }
}