/* ==========================================================================
   WB Form — テーマ内蔵フォームシステムのスタイル
   lp-2026-style.css のデザインシステムに合わせています
   ========================================================================== */

.wb-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    position: relative;
}

/* --- Field wrapper --- */
.wb-form-field {
    width: 100%;
    text-align: left;
}
.wb-form-field.wb-form-half {
    width: calc(50% - 0.6rem);
}

/* --- Label --- */
.wb-form-field > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

.wb-form-req {
    display: inline-block;
    font-size: 0.7rem;
    background: #c62828;
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* --- Input / Textarea / Select --- */
.wb-form input[type="text"],
.wb-form input[type="email"],
.wb-form input[type="tel"],
.wb-form input[type="url"],
.wb-form input[type="number"],
.wb-form textarea,
.wb-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.wb-form input:focus,
.wb-form textarea:focus,
.wb-form select:focus {
    outline: none;
    border-color: var(--wb-color-gold, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.wb-form textarea {
    resize: vertical;
    min-height: 100px;
}
.wb-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Radio / Checkbox groups --- */
.wb-form-radio-group,
.wb-form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.3rem 0;
}
.wb-form-radio,
.wb-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
}
.wb-form-radio:hover,
.wb-form-checkbox:hover {
    border-color: var(--wb-color-gold, #D4AF37);
    background: #fffdf5;
}
.wb-form-radio input:checked + span,
.wb-form-checkbox input:checked + span {
    color: var(--wb-color-gold, #D4AF37);
    font-weight: 600;
}

/* --- Consent --- */
.wb-form-consent {
    padding: 1rem;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
}
.wb-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    cursor: pointer;
}
.wb-form-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* --- Submit --- */
.wb-form-submit {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}
.wb-form-btn {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.wb-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Status messages --- */
.wb-form-status {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 0.5rem;
    white-space: pre-line;
}
.wb-form-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.wb-form-error {
    background: #fff3f3;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .wb-form-field.wb-form-half {
        width: 100%;
    }
    .wb-form-radio-group,
    .wb-form-checkbox-group {
        flex-direction: column;
    }
}
