/* Smart Mail Form - フロントエンドスタイル */
.smf-form-wrapper {
    --smf-font-size: 14px;
    max-width: 640px;
    margin: 0 auto;
}

.smf-form {
    position: relative;
}

.smf-field {
    margin-bottom: 20px;
}

.smf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: var(--smf-font-size);
}

.smf-required-mark {
    color: #dc3232;
    margin-left: 2px;
}

.smf-field input[type="text"],
.smf-field input[type="email"],
.smf-field textarea,
.smf-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: var(--smf-font-size);
    line-height: 1.5;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.smf-field input[type="text"]:focus,
.smf-field input[type="email"]:focus,
.smf-field textarea:focus,
.smf-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.smf-field textarea {
    resize: vertical;
    min-height: 120px;
}

.smf-field select {
    appearance: auto;
}

/* ラジオ・チェックボックスグループ */
.smf-radio-group,
.smf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smf-radio-label,
.smf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

/* チェックボックスの2行ラベル（2行目は小さめ） */
.smf-checkbox-label span br+* {
    font-size: calc(var(--smf-font-size) - 2px);
}

.smf-checkbox-label input {
    margin-top: 3px;
}

.smf-radio-label input,
.smf-checkbox-label input {
    margin: 0;
}

/* エラー表示 */
.smf-error-message {
    display: block;
    color: #dc3232;
    font-size: calc(var(--smf-font-size) - 1px);
    margin-top: 4px;
    min-height: 0;
}

.smf-field.smf-has-error input,
.smf-field.smf-has-error textarea,
.smf-field.smf-has-error select {
    border-color: #dc3232;
}

/* 送信ボタン */
.smf-submit-wrapper {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.smf-submit-button {
    display: inline-block;
    padding: 12px 32px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: calc(var(--smf-font-size) + 2px);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.smf-submit-button:hover {
    background: #005a87;
}

.smf-submit-button:disabled {
    background: #999;
    cursor: not-allowed;
}

.smf-loading {
    color: #666;
    font-size: var(--smf-font-size);
}

.smf-loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: smf-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes smf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* メッセージ */
.smf-message {
    padding: 16px 20px;
    border-radius: 4px;
    font-size: calc(var(--smf-font-size) + 1px);
    margin-top: 16px;
}

.smf-message.smf-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.smf-message.smf-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ハニーポット非表示 */
.smf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* レスポンシブ */
@media (max-width: 480px) {
    .smf-submit-button {
        width: 100%;
        text-align: center;
    }

    .smf-submit-wrapper {
        flex-direction: column;
    }
}