/* WCO Side Drawer Styles */
:root {
    --wco-primary: #1e9207;
    --wco-primary-dark: #1D3C17;
    --wco-secondary: #f8f9fa;
    --wco-accent: #1e9207;
    --wco-text: #333;
    --wco-white: #ffffff;
    --wco-shadow: 0 10px 40px rgba(0,0,0,0.15);
    --wco-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wco-open-drawer-btn {
    background: var(--wco-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wco-transition);
}

.wco-open-drawer-btn:hover {
    background: var(--wco-primary-dark);
}

/* Overlay */
.wco-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--wco-transition);
}

.wco-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.wco-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: var(--wco-white);
    z-index: 9999;
    box-shadow: var(--wco-shadow);
    transition: var(--wco-transition);
    overflow-y: auto;
    padding: 0;
}

.wco-drawer.active {
    right: 0;
}

.wco-drawer-header {
    background: var(--wco-primary);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wco-drawer-header h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.wco-close-drawer {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.wco-drawer-body {
    padding: 30px;
}

/* Progress Bar */
.wco-progress-container {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.wco-progress-step {
    padding: 10px 20px;
    font-weight: 600;
    color: #999;
    position: relative;
}

.wco-progress-step.active {
    color: var(--wco-primary);
}

.wco-progress-step.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--wco-primary);
}

/* Steps */
.wco-step {
    display: none;
}

.wco-step.active {
    display: block;
    animation: wcoFadeIn 0.4s ease;
}

@keyframes wcoFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

h3 {
    font-size: 16px;
    margin: 25px 0 15px;
    color: var(--wco-text);
}

/* Cards */
.wco-service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wco-card, .wco-waste-card, .wco-container-card {
    cursor: pointer;
    position: relative;
}

.wco-card input, .wco-waste-card input, .wco-container-card input {
    position: absolute;
    opacity: 0;
}

.wco-card-content, .wco-waste-content, .wco-container-content {
    background: #f9faf8;
    border: 2px solid #eef2f8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: var(--wco-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wco-container-content {
    justify-content: flex-start;
}

.wco-card input:checked + .wco-card-content,
.wco-waste-card input:checked + .wco-waste-content,
.wco-container-card input:checked + .wco-container-content {
    border-color: var(--wco-primary);
    background: #e7f1ff;
    box-shadow: 0 4px 12px rgba(0,86,179,0.1);
}

.wco-card-icon { font-size: 32px; margin-bottom: 10px; display: block; }

/* Radio Group */
.wco-radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.wco-custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--wco-text);
    user-select: none;
}

.wco-custom-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wco-radio-dot {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wco-transition);
    background: white;
}

.wco-radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wco-primary);
    transform: scale(0);
    transition: var(--wco-transition);
}

.wco-custom-radio input:checked + .wco-radio-dot {
    border-color: var(--wco-primary);
}

.wco-custom-radio input:checked + .wco-radio-dot::after {
    transform: scale(1);
}

/* Custom Select Wrapper */
.wco-select-wrapper {
    position: relative;
    width: 100%;
}

.wco-select-wrapper::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

.wco-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 35px !important;
    background: white;
    border: 1.5px solid #eef2f8 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Layout */
.wco-flex-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wco-field {
    margin-bottom: 15px;
}

.wco-field > label:not(.wco-custom-checkbox):not(.wco-custom-radio) {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #666;
}

.wco-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

.wco-field input, .wco-field select, .wco-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eef2f8;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--wco-transition);
}

.wco-field input:focus, .wco-field select:focus, .wco-field textarea:focus {
    border-color: var(--wco-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

/* Validation Errors */
.wco-field input.wco-error,
.wco-field select.wco-error,
.wco-field textarea.wco-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1) !important;
}

.wco-select-wrapper:has(select.wco-error)::after {
    color: #e53935;
}

.wco-error-msg {
    display: block;
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    animation: wcoFadeIn 0.3s ease;
}

/* Custom Checkbox */
.wco-custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.wco-custom-checkbox input {
    position: absolute;
    opacity: 0;
}

.wco-checkbox-check {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wco-transition);
    background: white;
}

.wco-custom-checkbox input:checked + .wco-checkbox-check {
    background: var(--wco-primary);
    border-color: var(--wco-primary);
}

.wco-checkbox-check::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
    display: none;
}

.wco-custom-checkbox input:checked + .wco-checkbox-check::after {
    display: block;
}

/* Waste Grid */
.wco-waste-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wco-waste-content {
    padding: 15px 10px;
    font-size: 12px;
}

.wco-waste-icon { font-size: 24px; margin-bottom: 5px; }

/* Container Grid */
.wco-container-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.wco-container-content {
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
}

.wco-container-img {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.wco-container-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wco-container-details h4 { margin: 0 0 10px; font-size: 16px; }

.wco-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 15px;
    font-size: 11px;
    color: #666;
}

/* Price */
.wco-price-sum {
    margin-top: 30px;
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
}

#wco-estimated-price {
    font-weight: 700;
    color: #4CAF50;
    margin-left: 10px;
}

/* Buttons */
.wco-btn {
    width: 100%;
    background: var(--wco-primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--wco-transition);
}

.wco-btn-secondary {
    background: #eee;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.wco-btn:hover { background: var(--wco-primary-dark); }

.wco-summary-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--wco-primary);
}

.wco-summary-box h4 { margin: 0 0 10px; }

#wco-summary-text { font-size: 13px; line-height: 1.6; }

/* Confirmation Screen */
#wco-confirmation {
    text-align: center;
    padding: 20px 0;
}

.wco-confirm-icon {
    margin-bottom: 20px;
    animation: wcoCheckPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wcoCheckPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.wco-confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wco-text);
    margin: 0 0 10px;
}

.wco-confirm-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px;
    line-height: 1.5;
}

.wco-confirm-summary {
    background: #f9faf8;
    border: 1.5px solid #eef2f8;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.wco-confirm-summary h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--wco-primary);
}

.wco-confirm-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0faf0;
    border: 1.5px solid #d4edda;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
    color: #2d6a30;
}

.wco-confirm-contact svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .wco-drawer { max-width: 100%; }
    .wco-waste-grid { grid-template-columns: 1fr 1fr; }
    .wco-container-content { flex-direction: column; }
    .wco-container-img { width: 100%; height: 150px; }
    .wco-flex-row { grid-template-columns: 1fr; }
    .wco-field-grid { grid-template-columns: 1fr; }
}
