/* ==========================================================
   Duo Clips Order Form — v2.4 WPForms Match
   ========================================================== */

.duo-order-wrap {
    --bg: #ffffff;
    --border: rgba(0, 0, 0, 0.25);
    --border-light: rgba(0, 0, 0, 0.1);
    --text: rgba(0, 0, 0, 0.85);
    --text-muted: rgba(0, 0, 0, 0.55);
    --text-input: rgba(0, 0, 0, 0.7);
    --accent: #000000;
    --accent-dark: #333333;
    --red: #d63637;
    --r: 3px;
    --input-h: 36px;

    max-width: 680px;
    margin: 0 auto;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
}

.duo-order-wrap *,
.duo-order-wrap *::before,
.duo-order-wrap *::after {
    box-sizing: border-box;
}

/* ── Product Header ── */
.duo-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.duo-product-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--r);
    background: #f5f5f5;
    border: 1px solid var(--border-light);
    padding: 4px;
    flex-shrink: 0;
}

.duo-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.duo-product-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
}

.duo-product-sub {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.3;
}

.duo-product-price-wrap {
    text-align: right;
    flex-shrink: 0;
}

.duo-product-price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.duo-product-per {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    text-align: right;
}

/* ── Divider ── */
.duo-divider {
    height: 1px;
    background: var(--border-light);
    margin: 30px 0px 30px 0px;
}

/* ── Section ── */
.duo-section {
    padding: 0px 0;
    margin: 0;
}

/* ── Label (matches .wpforms-field-label) ── */
.duo-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 2px 0;
    padding: 0;
    color: var(--text);
}

.duo-label-hint {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Hint / Sublabel (matches .wpforms-field-sublabel) ── */
.duo-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    margin: 2px 0 0;
    padding: 0;
    color: var(--text-muted);
}

/* ── Inputs (matches WPForms inputs) ── */
.duo-order-wrap input[type="text"],
.duo-order-wrap input[type="email"],
.duo-order-wrap input[type="tel"],
.duo-order-wrap select,
.duo-order-wrap textarea {
    display: block;
    width: 100%;
    height: var(--input-h);
    padding: 4px 10px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text-input);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.3;
    transition: border-color 0.15s;
}

.duo-order-wrap textarea {
    height: auto;
    padding: 6px 10px;
    resize: vertical;
}

.duo-order-wrap select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-color: #fff;
    padding-right: 30px;
}


#top .main_color .duo-order-wrap input[type="tel"] {
    opacity: 1;
	background:#fff;
	border-color: #000;
}

.duo-order-wrap input::placeholder,
.duo-order-wrap textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.duo-order-wrap input:focus,
.duo-order-wrap select:focus,
.duo-order-wrap textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.duo-order-wrap input.duo-invalid,
.duo-order-wrap select.duo-invalid,
.duo-order-wrap .duo-qty-row.duo-invalid,
.duo-order-wrap .duo-invalid {
    border-color: var(--red) !important;
}

/* ── Quantity ── */
.duo-qty-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    height: var(--input-h);
    overflow: hidden;
}

.duo-qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0;
    transition: background 0.12s;
    flex-shrink: 0;
}

.duo-qty-btn:hover {
    background: #eee;
}

.duo-qty-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    background: #fff;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 16px;
    color: #333;
    user-select: none;
}

#duo-qty-val {
    font-weight: 700;
}

.duo-qty-suffix {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Two-Column Layout ── */
.duo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    align-items: start;
}

/* ── Layout Rows ── */
.duo-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.duo-row-half .duo-section {
    padding: 5px 0;
}

.duo-omniva-row {
    display: flex;
    gap: 8px;
}

.duo-omniva-row select {
    width: auto;
    flex-shrink: 0;
    min-width: 90px;
}

.duo-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.duo-row-2 .duo-section {
    padding: 5px 0;
}

/* ── Searchable Locker ── */
.duo-search-wrap {
    position: relative;
    flex: 1;
}

.duo-locker-selected {
    color: var(--text) !important;
    font-weight: 600;
}

#duo-locker-list,
.duo-search-list {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none !important;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.duo-search-list::-webkit-scrollbar {
    width: 5px;
}

.duo-search-list::-webkit-scrollbar-track {
    background: transparent;
}

.duo-search-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

#duo-locker-list li,
.duo-search-item {
    padding: 6px 10px 6px 4px;
    list-style: none !important;
    font-size: 16px;
    color: var(--text-input);
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.08s;
}

.duo-search-item:hover,
.duo-search-active {
    background: rgba(6, 106, 171, 0.06);
    color: var(--accent);
}

.duo-search-empty {
    padding: 10px;
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
}

/* ── Price Summary ── */
.duo-summary {
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 8px 14px;
    margin: 6px 0;
    background: #fafafa;
}

.duo-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.duo-line span:last-child {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.duo-total {
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    padding-top: 6px;
}

.duo-total span:first-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.duo-total span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* ── Submit (matches WPForms button) ── */
.duo-btn-submit {
    display: inline-block;
    width: auto;
    height: 36px;
    padding: 8px 15px;
    margin-top: 20px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: inherit;
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.duo-btn-submit:hover {
    background-color: var(--accent-dark);
}

.duo-btn-submit:disabled {
    background: #eee;
    border: 1px solid #ddd;
    color: #333;
    cursor: not-allowed;
}

/* ── Footer ── */
.duo-footer-note {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* ── Messages ── */
.duo-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: var(--r);
    font-size: 16px;
    line-height: 1.3;
}

.duo-message.duo-success {
    background: #edf7ee;
    color: #1e7e24;
    border: 1px solid #c3e6cb;
}

.duo-message.duo-error {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid #f5c6cb;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .duo-columns,
    .duo-row-half,
    .duo-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .duo-columns > .duo-section:nth-child(1) { order: 4; }
    .duo-columns > .duo-section:nth-child(2) { order: 1; margin-bottom: 10px; }
    .duo-columns > .duo-section:nth-child(3) { order: 5; }
    .duo-columns > .duo-section:nth-child(4) { order: 2; }
    .duo-columns > .duo-section:nth-child(5) { order: 6; }
    .duo-columns > .duo-section:nth-child(6) { order: 3; }

    .duo-omniva-row {
        flex-direction: column;
    }

    .duo-product-price {
        font-size: 22px;
    }
}
