/**
 * Step Mail Pro - Public Styles
 * フロントエンド用スタイル
 */

/* 購読フォームのスタイル */
.smp-subscription-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.smp-subscription-form h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.smp-field {
    margin-bottom: 20px;
}

.smp-field label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

.smp-field input[type="text"],
.smp-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.smp-field input[type="text"]:focus,
.smp-field input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.smp-field input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.smp-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #7f8c8d;
    cursor: pointer;
}

.smp-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smp-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.smp-submit-btn:active {
    transform: translateY(0);
}

.smp-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* メッセージ表示 */
.smp-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.smp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.smp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ローディング状態 */
.smp-form.loading .smp-submit-btn {
    position: relative;
    color: transparent;
}

.smp-form.loading .smp-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: smp-spin 1s linear infinite;
}

@keyframes smp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .smp-subscription-form {
        margin: 10px;
        padding: 20px;
    }
    
    .smp-subscription-form h3 {
        font-size: 20px;
    }
    
    .smp-field input[type="text"],
    .smp-field input[type="email"] {
        font-size: 16px; /* iOS のズーム防止 */
    }
}

/* 購読解除ページ */
.smp-unsubscribe-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.smp-unsubscribe-page h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.smp-unsubscribe-page p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.smp-unsubscribe-btn {
    padding: 12px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.smp-unsubscribe-btn:hover {
    background: #c0392b;
}

/* 確認ページ */
.smp-confirmation-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.smp-confirmation-page .success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
}

.smp-confirmation-page h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.smp-confirmation-page p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 通知メッセージ */
.smp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-weight: 500;
    animation: smp-slide-in 0.3s ease-out;
}

.smp-notification.smp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.smp-notification.smp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.smp-notification.smp-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes smp-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* フォームタイプ別スタイル */
.smp-ajax-form {
    /* AJAX フォーム用の追加スタイル */
}

.smp-post-form {
    /* POST フォーム用の追加スタイル */
}