/* process.css - Styling for Custom Order Flow */

:root {
    --primary: #111827;
    --secondary: #6b7280;
    --accent: #000000;
    --light: #f3f4f6;
    --border: #e5e7eb;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
}

/* --- Process Steps Indicator --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 1.5rem 15%;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: relative;
    margin-bottom: 3rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    margin-top: 20px; /* Half of step-number height (40px) */
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    min-width: 100px;
}

.step:hover {
    color: var(--primary);
}

.step.active {
    color: var(--primary);
    font-weight: bold;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.step.active .step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(17, 24, 39, 0.3);
    transform: translateY(-2px);
}

.step-title {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

/* --- Step 1: Choose Design --- */
.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.design-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.design-image {
    height: 300px;
    overflow: hidden;
    background: #f9fafb;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.design-card:hover .design-image img {
    transform: scale(1.05);
}

.design-info {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.design-info h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Upload Card Specifics */
.upload-card {
    align-items: center;
    justify-content: center;
    min-height: 380px; /* Matches height of image cards */
    background: #f9fafb;
    border: 2px dashed var(--border);
}

.upload-card:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.upload-card:hover .upload-icon {
    color: var(--success);
}

/* --- Step 2: Customize --- */
.customize-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.preview-area {
    background: #f9fafb;
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.preview-area img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.controls-area {
    padding: 1rem 0;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

/* --- Form Controls Styling --- */
.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-options {
    display: flex;
    gap: 1rem;
}

.btn-type {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.btn-type:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-type.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

select#size-select,
input#quantity-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--primary);
    background-color: white;
    transition: border-color 0.2s ease;
    appearance: none;
}

select#size-select:focus,
input#quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

input#quantity-input {
    width: 120px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .customize-container, 
    .custom-order-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .process-steps {
        padding: 1.5rem 0.5rem;
    }
    .process-steps::before {
        left: 0.5rem;
        right: 0.5rem;
        margin-top: 16px;
    }
    .step-number {
        width: 32px;
        height: 32px;
    }
}

/* --- Enhanced Order Summary Card (Checkout) --- */
.order-summary-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: #f9fafb;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.summary-content {
    padding: 2rem;
}

.summary-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.main-preview img {
    max-width: 220px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: #fff;
}

.original-design-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    font-weight: 700;
}

.original-design-preview img {
    max-width: 80px;
    max-height: 80px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px;
}

.summary-details h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-align: center;
}

.specs-text {
    text-align: center;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.placement-text {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: monospace;
    margin-bottom: 1.5rem;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}

.pricing-table {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-size: 0.95rem;
}

.price-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.payment-note {
    text-align: right;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

.summary-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* --- Placement Details Toggle --- */
.placement-details-toggle {
    margin-bottom: 1.5rem;
    text-align: center;
}

.placement-details-toggle summary {
    font-size: 0.8rem;
    color: var(--secondary);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.placement-details-toggle summary::-webkit-details-marker {
    display: none;
}

.placement-details-toggle summary::before {
    content: '\f078'; /* FontAwesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.2s ease;
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.placement-details-toggle[open] > summary::before {
    transform: rotate(180deg);
}

.placement-details-toggle .placement-text {
    margin-top: 0.75rem;
    margin-bottom: 0; /* Remove bottom margin since the details tag has it */
}