/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f4f7fb;
    color: #1a202c;
    line-height: 1.6;
    padding: 20px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    margin-bottom: 0.5rem;
}

h1 i {
    color: #3182ce;
    margin-right: 10px;
}

.subtitle {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* ===== TEMPLATE SELECTOR ===== */
.template-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 30px 0 40px;
}

.template-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 15px;
    width: 180px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.template-option:hover {
    border-color: #3182ce;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(49, 130, 206, 0.12);
}

.template-option.active {
    border-color: #3182ce;
    background: #ebf4ff;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
}

.template-option img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    background: #edf2f7;
    margin-bottom: 10px;
}

.template-option p {
    font-weight: 600;
    color: #2d3748;
    margin: 6px 0 10px;
}

.template-option a {
    display: inline-block;
    background: #3182ce;
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.template-option a:hover {
    background: #2b6cb0;
}

/* ===== FORM STYLES ===== */
form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-top: 10px;
}

form .full-width {
    grid-column: 1 / -1;
}

form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 4px;
}

form label i {
    color: #3182ce;
    width: 20px;
    margin-right: 6px;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    background: #f7fafc;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
    background: #ffffff;
}

form textarea {
    min-height: 90px;
    resize: vertical;
}

form .btn-submit {
    grid-column: 1 / -1;
    background: #3182ce;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: auto;
    justify-self: center;
    min-width: 240px;
}

form .btn-submit:hover {
    background: #2b6cb0;
}

form .btn-submit:active {
    transform: scale(0.97);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    form {
        grid-template-columns: 1fr;
    }
    .template-option {
        width: 140px;
    }
    h1 {
        font-size: 1.8rem;
    }
}