/* GW Adviser Reviews - Frontend Form */

.gw-ar-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}
.gw-ar-form-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px;
    text-align: center;
}
.gw-ar-form-note {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 24px;
}
.gw-ar-field {
    margin-bottom: 20px;
}
.gw-ar-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #333;
}
.gw-ar-field label .required {
    color: #c00;
}
.gw-ar-field select,
.gw-ar-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gw-ar-field select:focus,
.gw-ar-field textarea:focus {
    border-color: var(--theme-palette-color-1, #076951);
    outline: none;
    box-shadow: 0 0 0 2px rgba(7, 105, 81, 0.12);
}
.gw-ar-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.gw-ar-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}
.gw-ar-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.gw-ar-btn:active {
    transform: scale(0.97);
}
.gw-ar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gw-ar-btn-primary {
    background: var(--theme-palette-color-1, #076951);
    color: #fff;
}
.gw-ar-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}
.gw-ar-btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.gw-ar-btn-secondary:hover {
    background: #e4e4e4;
}

/* 確認画面 */
.gw-ar-confirm-box {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.gw-ar-confirm-row {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}
.gw-ar-confirm-row:last-child {
    border-bottom: none;
}
.gw-ar-confirm-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gw-ar-confirm-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}
.gw-ar-confirm-text {
    white-space: pre-wrap;
}

/* 完了画面 */
.gw-ar-done-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--theme-palette-color-1, #076951);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

/* エラー */
.gw-ar-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    text-align: center;
}

/* ログイン誘導 */
.gw-ar-login-required {
    text-align: center;
    padding: 40px 20px;
}
.gw-ar-login-required p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 16px;
}
.gw-ar-login-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--theme-palette-color-1, #076951);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.gw-ar-login-btn:hover {
    opacity: 0.9;
}

/* スピナー */
.gw-ar-btn.loading {
    position: relative;
    color: transparent;
}
.gw-ar-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gw-ar-spin 0.6s linear infinite;
}
@keyframes gw-ar-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .gw-ar-actions {
        flex-direction: column;
    }
    .gw-ar-btn {
        width: 100%;
    }
}
