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

/* Main Wrapper */
.ins-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 10px;
}

@media (max-width: 950px) {
    .ins-wrap {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.ins-wrap .card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

/* Headings */
.ins-wrap .card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 30px;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    position: relative;
}

.ins-wrap .card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #6366f1;
    border-radius: 2px;
}

.ins-wrap .card h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #334155;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 20px;
}

@media (max-width: 600px) {

    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Inputs and Selects */
.ins-wrap input[type="text"],
.ins-wrap input[type="email"],
.ins-wrap input[type="date"],
.ins-wrap input[type="number"],
.ins-wrap select {
    width: 100%;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #334155;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.ins-wrap input:focus,
.ins-wrap select:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.ins-wrap input::placeholder {
    color: #94a3b8;
}

.ins-wrap input[type="date"] {
    color: #94a3b8;
}

.ins-wrap input[type="date"]:valid {
    color: #334155;
}

/* Button */
.ins-wrap button {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-top: 10px;
}

.ins-wrap button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.ins-wrap button:active {
    transform: translateY(1px);
}

/* Item Cart */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding-right: 15px;
}

.cart-item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-item input {
    width: 50px !important;
    padding: 10px !important;
    margin: 0 !important;
}

.cart-item-info span {
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    font-size: 14px;
}

.cart-item .qty {
    width: 80px;
    padding: 12px;
    margin-bottom: 0;
    text-align: center;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 600;
    font-size: 1.1rem;
    background: #ffffff;
}

.cart-item .remove {
    background: #fff1f2;
    color: #e11d48;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    margin-left: 15px;
    transition: all 0.2s ease;
    border: 1px solid #e11d48 !important;
}

.cart-item .remove:hover {
    background: #e11d48;
    color: #ffffff;
    transform: scale(1.05);
}

/* Shipping Toggle */
.ins-wrap label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    margin: 25px 0 15px 0;
    color: #475569;
    user-select: none;
    font-size: 1.05rem;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.ins-wrap label:hover {
    background: #e2e8f0;
}

.ins-wrap label input[type="checkbox"] {
    width: auto;
    margin: 0 15px 0 0;
    width: 22px;
    height: 22px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* Shipping Fields Box */
.shipping-box {
    display: none;
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    margin-top: 15px;
    border: 1px solid #cbd5e1;
    margin-bottom: 25px;
}