@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&display=swap');

/* ========================
   BASE
======================== */
.codpro-wrap {
    font-family: 'Outfit', sans-serif;
    max-width: 540px;
    margin: 24px auto;
    padding: 0 16px;
}

/* ========================
   PRODUCT BANNER
======================== */
.codpro-product-banner {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 220px;
}
.codpro-product-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ========================
   CARD
======================== */
.codpro-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    overflow: hidden;
    border: 1px solid #eee;
}
.codpro-product-banner + .codpro-card {
    border-radius: 0 0 16px 16px;
}

/* ========================
   HEADER
======================== */
.codpro-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2d47 50%, #0f3460 100%);
    padding: 24px 28px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.codpro-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 120%; height: 60px;
    background: #fff;
    border-radius: 50%;
}
.codpro-header-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
}
.codpro-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.2;
}
.codpro-price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f4a72c, #e05b1c);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

/* ========================
   FORM
======================== */
.codpro-form {
    padding: 32px 28px 24px;
}

.codpro-field-group {
    margin-bottom: 18px;
}
.codpro-field-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.cpro-icon { font-size: 17px; }
.cpro-req { color: #e53935; font-size: 17px; line-height: 1; }

.cpro-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    background: #f9faff;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}
.cpro-input:focus {
    border-color: #0f3460;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15,52,96,0.09);
}
.cpro-input.cpro-invalid {
    border-color: #e53935;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(229,57,53,0.08);
}
.cpro-input.cpro-valid {
    border-color: #2e7d32;
    background: #f6fff6;
}

.cpro-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a2e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Quantity */
.cpro-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #f9faff;
    max-width: 160px;
}
.cpro-qty-btn {
    width: 44px;
    height: 48px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 700;
    color: #0f3460;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.cpro-qty-btn:hover { background: #eef2ff; }
.cpro-qty-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center;
    max-width: 60px;
    box-shadow: none !important;
    font-weight: 700;
    font-size: 16px;
    padding: 0 !important;
}
.cpro-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cpro-err {
    display: block;
    min-height: 17px;
    color: #e53935;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* Submit */
.cpro-submit-btn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.cpro-submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s;
}
.cpro-submit-btn:hover::after { left: 100%; }
.cpro-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(229,57,53,0.38); }
.cpro-submit-btn:disabled { opacity:.7; cursor:not-allowed; transform:none; }

/* Trust */
.cpro-trust {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

/* ========================
   THANK YOU PAGE
======================== */
.codpro-ty-card {
    text-align: center;
    padding-bottom: 10px;
    animation: cpro-slideIn 0.5s ease;
}
@keyframes cpro-slideIn {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
.codpro-ty-header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c);
    padding: 32px 28px 24px;
    position: relative;
}
.codpro-ty-check {
    font-size: 56px;
    margin-bottom: 10px;
    animation: cpro-pop 0.5s 0.2s both;
}
@keyframes cpro-pop {
    0% { transform: scale(0); }
    80%{ transform: scale(1.2); }
    100%{ transform: scale(1); }
}
.codpro-ty-header h2 { color:#fff; font-size:22px; font-weight:900; margin:0 0 8px; }
.codpro-ty-msg { color:rgba(255,255,255,0.85); font-size:14px; margin:0 0 12px; line-height:1.5; }
.codpro-order-badge {
    display:inline-block;
    background:rgba(255,255,255,0.2);
    color:#fff;
    padding:6px 16px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
    backdrop-filter:blur(4px);
}

/* Upsell */
.codpro-upsell-box {
    margin: 20px 20px 16px;
    border: 2px solid #f4a72c;
    border-radius: 14px;
    overflow: hidden;
    background: #fffbf0;
}
.codpro-upsell-ribbon {
    background: linear-gradient(135deg, #f4a72c, #e05b1c);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 800;
}
.codpro-timer-wrap {
    background: #fff3e0;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #bf360c;
    border-bottom: 1px solid #ffe0b2;
}
.codpro-timer { font-size: 18px; color: #e53935; }

.codpro-upsell-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}
.codpro-upsell-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.codpro-upsell-info h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1a1a2e;
}
.codpro-upsell-info p {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.4;
}
.codpro-upsell-prices { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cpro-price-orig {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}
.cpro-price-new {
    font-size: 20px;
    font-weight: 900;
    color: #e53935;
}

.cpro-upsell-accept-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f4a72c, #e05b1c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.25s;
}
.cpro-upsell-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,167,44,0.5);
}

.cpro-upsell-decline-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .codpro-form { padding: 28px 18px 20px; }
    .codpro-header { padding: 20px 18px 18px; }
    .codpro-upsell-inner { flex-direction: column; text-align: center; }
    .codpro-upsell-prices { justify-content: center; }
}
