/* =====================================================
   Membership Page Styles
   ===================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Membership Form Section */
.membership-form-section {
    background: #f5f7fa;
    padding: 60px 0 80px;
}

.form-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.intro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Form Container */
.membership-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    padding: 40px 50px;
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
}

.section-title i {
    color: #2DD4A8;
    font-size: 22px;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
    font-weight: 700;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d8e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2DD4A8;
    box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row (2 columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 6px;
}

.form-hint.error-message {
    color: #e74c3c;
    font-weight: 600;
}

/* Terms Section */
.terms-section {
    background: #fafbfc;
}

.terms-box {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.terms-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.terms-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: #2c3e50;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 24px;
}

.terms-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.terms-info p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.terms-info p:last-child {
    margin-bottom: 0;
}

.terms-box p,
.terms-box li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.terms-box ol,
.terms-box ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.terms-box li {
    margin-bottom: 8px;
}

.terms-box a {
    color: #2DD4A8;
    text-decoration: underline;
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.checkbox-text.required::after {
    content: ' *';
    color: #e74c3c;
    font-weight: 700;
}

/* Submit Section */
.form-submit {
    padding: 40px 50px;
    background: #fafbfc;
    text-align: center;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-note {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}
.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px 24px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid #f5c6cb;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

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

    .page-subtitle {
        font-size: 14px;
    }

    .membership-form-section {
        padding: 40px 0 60px;
    }

    .form-section {
        padding: 30px 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .terms-box {
        padding: 20px;
        max-height: 400px;
    }

    .form-submit {
        padding: 30px 24px;
    }

    .submit-button {
        width: 100%;
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .membership-form {
        border-radius: 0;
    }

    .form-section {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 14px;
    }
}
