
.tool-page-hero {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.52), transparent 32%),
        linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.tool-page-hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.tool-page-hero p {
    max-width: 760px;
    margin: 0 auto 24px;
    font-size: 20px;
}

.generator-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.96), transparent 35%),
        linear-gradient(135deg, #ffffff, #fff0fa, #f4edff);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

.form-group label {
    color: #5b4fd6;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e3dcff;
    border-radius: 14px;
    padding: 12px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8b7cff;
}

.generator-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.generator-buttons button {
    border: none;
    background: #4a6cf7;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0,0,0,0.14);
    transition: transform 0.2s ease, background 0.2s ease;
}

.generator-buttons button.secondary {
    background: #f4edff;
    color: #5b4fd6;
}

.generator-buttons button:hover {
    background: #5b4fd6;
    transform: translateY(-2px);
}

.generator-buttons button.secondary:hover {
    background: #e7dcff;
    color: #5b4fd6;
}

.note-preview-wrap {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 4px;
}

.note-sheet {
    background: #fff;
    border: 5px solid #8b7cff;
    border-radius: 25px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.note-sheet-title {
    margin: 0 0 6px;
    text-align: center;
    color: #5b4fd6;
    font-size: 32px;
}

.note-sheet-subtitle {
    margin: 0 0 22px;
    text-align: center;
    color: #6d5316;
    font-weight: bold;
}

.lunchbox-note {
    max-width: 660px;
    margin: 0 auto;
    padding: 28px 24px;
    border: 3px dashed #ff84bd;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255,234,115,0.45), transparent 24%),
        radial-gradient(circle at bottom left, rgba(181,225,255,0.45), transparent 28%),
        linear-gradient(135deg, #fffdf3, #fff5fa);
    text-align: center;
}

.note-emoji {
    display: block;
    font-size: 58px;
    margin-bottom: 8px;
}

.note-recipient {
    margin: 0 0 14px;
    color: #5b4fd6;
    font-size: 24px;
}

.note-message {
    margin: 0;
    color: #333;
    font-size: 27px;
    line-height: 1.35;
    font-weight: bold;
}

.note-signoff {
    margin: 18px 0 0;
    color: #6d5316;
    font-size: 17px;
    font-weight: bold;
}

.note-tip {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 15px;
    border-radius: 17px;
    background: #effffd;
    color: #276e5c;
    text-align: center;
    font-weight: bold;
}

.helper-box {
    max-width: 930px;
    margin: 28px auto;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-align: center;
}

@media (max-width: 760px) {
    .tool-page-hero {
        padding: 34px 16px;
    }

    .tool-page-hero h1 {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .tool-page-hero p {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .generator-box {
        margin: 18px auto;
        padding: 18px 14px;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .generator-buttons button {
        width: 100%;
        max-width: 290px;
    }

    .note-sheet {
        padding: 18px 13px;
        border-radius: 20px;
    }

    .note-sheet-title {
        font-size: 27px;
    }

    .note-sheet-subtitle {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .lunchbox-note {
        padding: 22px 15px;
    }

    .note-emoji {
        font-size: 48px;
    }

    .note-recipient {
        font-size: 21px;
    }

    .note-message {
        font-size: 22px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .note-preview-wrap,
    .note-preview-wrap * {
        visibility: visible !important;
    }

    .note-preview-wrap {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .note-sheet {
        width: 100% !important;
        box-sizing: border-box !important;
        border: 3px solid #8b7cff !important;
        box-shadow: none !important;
        padding: 22px !important;
    }

    .lunchbox-note {
        max-width: 100% !important;
    }
}
