* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #1f2937;
}

/* NAVBAR */
.navbar {
    background-color: #0033a0;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* BREADCRUMB */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    font-size: 14px;
    color: #6b7280;
    background-color: white;
}

.breadcrumb a {
    color: #0033a0;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* PAGE CONTAINER */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
    background-color: white;
    min-height: calc(100vh - 200px);
}

h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #111827;
}

.subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* FORM LAYOUT */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 3rem;
}

/* FORM SECTION */
.form-section {
    background-color: white;
    padding: 0;
}

.form-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.login-link {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 2rem;
}

.login-link a {
    color: #273469;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

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

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

.form-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #111827;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.2s;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #273469;
    box-shadow: 0 0 0 3px rgba(39, 52, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

/* FORM CHECKBOXES */
.form-checkboxes {
    margin: 2rem 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #273469;
}

.checkbox-item label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.checkbox-item label a {
    color: #273469;
    text-decoration: none;
}

.checkbox-item label a:hover {
    text-decoration: underline;
}

/* SHIPPING SECTION */
.shipping-section {
    margin: 2rem 0;
}

.shipping-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

/* NOTES SECTION */
.notes-section {
    margin: 2rem 0;
}

.notes-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.notes-section textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.notes-section textarea:focus {
    outline: none;
    border-color: #273469;
    box-shadow: 0 0 0 3px rgba(39, 52, 105, 0.1);
}

.notes-section textarea::placeholder {
    color: #9ca3af;
}

.shipping-options {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.radio-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.radio-item:hover {
    background-color: #f9fafb;
}

.radio-item input[type="radio"] {
    cursor: pointer;
    accent-color: #273469;
    width: 18px;
    height: 18px;
}

.radio-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* SUBMIT BUTTON */
.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #273469;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(39, 52, 105, 0.2);
    transition: all 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #1E2749;
    box-shadow: 0 6px 8px rgba(39, 52, 105, 0.3);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* SUMMARY SECTION */
.summary-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.summary-section h2 {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: #111827;
    font-weight: 700;
}

.summary-notice {
    background-color: #273469;
    color: white;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 15px;
}

.summary-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.summary-card h3 {
    font-size: 16px;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 700;
}

/* PRODUCT SUMMARY */
.product-info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-image-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.product-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #111827;
}

.product-details p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

/* CUSTOMIZATION SUMMARY */
.position-item {
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.position-item:last-child {
    margin-bottom: 0;
}

.position-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.position-name {
    font-weight: 600;
    font-size: 14px;
    color: #0033a0;
}

.method-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.method-badge.embroidery {
    background-color: #273469;
}

.method-badge.print {
    background-color: #14b8a6;
}

.position-type {
    font-size: 12px;
    color: #6b7280;
}

.logo-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 4px;
    background-color: white;
}

/* BREAKDOWN */
.breakdown-card .breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-card .breakdown-row:last-of-type {
    border-bottom: 2px solid #d1d5db;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 16px;
    color: #0033a0;
    margin-top: 0.5rem;
}

/* INFO NOTE */
.info-note {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 1rem;
    font-size: 13px;
    color: #1e40af;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .summary-section {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .navbar-content {
        padding: 0 1rem;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #0033a0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* SUCCESS MESSAGE */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.success-content h2 {
    color: #0033a0;
    margin-bottom: 1rem;
    font-size: 28px;
}

.success-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-home {
    padding: 0.875rem 2rem;
    background-color: #0033a0;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
}

.btn-home:hover {
    background-color: #002580;
}
