* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    color: #111827;
}

.contact-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.contact-card,
.form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 18px 16px;
}

.form-card {
    margin-top: 16px;
}

.page-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.04em;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.page-description {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

.input-container + .input-container {
    margin-top: 18px;
}

.title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.text-input,
.text-area {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    color: #111827;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.text-input {
    height: 48px;
    padding: 0 14px;
}

.text-area {
    min-height: 140px;
    padding: 12px 14px;
    line-height: 1.7;
    resize: vertical;
}

.text-input:focus,
.text-area:focus {
    background: #ffffff;
    border-color: #06c755;
    box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.12);
}

.text-input::placeholder,
.text-area::placeholder {
    color: #9ca3af;
}

.submit-area {
    margin-top: 20px;
}

.send-button,
.back-button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.send-button {
    border: none;
    background: #06c755;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(6, 199, 85, 0.18);
}

.back-form {
    margin-top: 12px;
}

.back-button {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.send-button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.send-button:disabled:active {
    transform: none;
}

.send-button:hover,
.back-button:hover {
    opacity: 0.96;
}

.send-button:active,
.back-button:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .contact-page {
        padding: 16px 12px 24px;
    }

    .contact-card,
    .form-card {
        border-radius: 18px;
        padding: 16px 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .text-area {
        min-height: 120px;
        font-size: 14px;
    }
}