﻿:root {
    --gold: #A9864E;
    --purple: #BB87E1;
    --ivory: #FFF8F0;
    --charcoal: #402E32;
    --bg: #ffffff;
    --maxw: 1100px;
    --card-radius: 18px;
}

.container {
    max-width: var(--maxw);
    margin: 32px auto;
    padding: 24px;
    line-height: 2.5em;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

    .brand .logo {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        background: linear-gradient(135deg,var(--purple),var(--gold));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700
    }

.hero {
    background: linear-gradient(180deg, rgba(187,135,225,0.06), rgba(169,134,78,0.03));
    border-radius: var(--card-radius);
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(64,46,50,0.06)
}

    .hero .info {
        flex: 1
    }

h1 {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--charcoal)
}

p.lead {
    margin: 0 0 18px;
    color: #4b393a
}

.hero .eyecatch {
    width: 260px;
    flex-shrink: 0
}

/* Section card effect */
section.card {
    background: var(--ivory);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 22px rgba(64,46,50,0.05);
    transform: translateY(0);
    transition: transform .45s cubic-bezier(.2,.9,.3,1),box-shadow .3s
}

    section.card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(64,46,50,0.08)
    }

.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-top: 16px
}

.feature {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg,rgba(187,135,225,0.06),rgba(169,134,78,0.02));
    min-height: 110px
}

    .feature h3 {
        margin: 0 0 6px
    }

/* Form */
form.order-form {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    align-items: start
}

.form-panel {
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(64,46,50,0.04)
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px
}

label {
    font-size: 14px;
    margin-bottom: 6px
}

input[type="text"], input[type="tel"], textarea, select {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px
}

    input[type="text"]::placeholder, input[type="tel"]::placeholder, textarea::placeholder, select ::placeholder {
        font-size: 12px; /* سایز فونت placeholder */
        color: #888; /* رنگ متن placeholder */
    }


    input[type="text"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
        outline: 3px solid rgba(187,135,225,0.25);
        outline-offset: 2px
    }

textarea {
    min-height: 88px;
    resize: vertical;
    font: inherit;
}

.capsule-options {
    display: flex;
    gap: 8px
}

.capsule-option {
    flex: 1;
    border: 1px dashed rgba(64,46,50,0.08);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    user-select: none
}

    .capsule-option input {
        display: none
    }

    .capsule-option.selected {
        border-style: solid;
        background: linear-gradient(180deg, rgba(169,134,78,0.06), rgba(187,135,225,0.03))
    }

.cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch
}

button.cta {
    background: var(--gold);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer
}

    button.cta:active {
        transform: translateY(1px)
    }

.right-summary {
    position: sticky;
    top: 24px
}

.summary-card {
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg,var(--ivory),#fff);
    box-shadow: 0 8px 24px rgba(64,46,50,0.04)
}

    .summary-card p {
        margin: 0.5rem 0;
    }

/* Simple fade-in animation for sections */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: fadein .9s forwards;
}

    .reveal.delay-1 {
        animation-delay: .12s
    }

    .reveal.delay-2 {
        animation-delay: .24s
    }

    .reveal.delay-3 {
        animation-delay: .36s
    }

@keyframes fadein {
    to {
        opacity: 1;
        transform: none
    }
}

/* Accessibility focus */


/* small screens */
@media (max-width:900px) {
    .hero {
        flex-direction: column;
    }

    h1 {
        text-align: justify;
        text-align-last: center;
        font-size: 15px;
        margin: 0;
    }

    .capsule-options {
        display: flex;
        gap: 8px;
        flex-direction: column;
    }

    .features {
        grid-template-columns: repeat(1,1fr)
    }

    form.order-form {
        grid-template-columns: 1fr;
    }

    .right-summary {
        position: relative;
        top: auto
    }
}
