/* Lochatch Forms Styling */

/* フォームメッセージ */
.form-message {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    animation: slideInDown 0.3s ease-out;
}

.form-message-success {
    background: linear-gradient(145deg, rgba(57, 255, 20, 0.1), rgba(46, 204, 113, 0.1));
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39FF14;
}

.form-message-error {
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.1), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.message-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.message-text {
    font-size: 1rem;
    font-weight: 500;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フィールドエラー */
.field-error {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.field-error::before {
    content: '⚠';
    font-size: 0.9rem;
}

/* フォーム拡張スタイル */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d0d0d0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(145deg, #16213e, #0f3460);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(57, 255, 20, 0.6);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
    background: linear-gradient(145deg, #1a2555, #0f3460);
}

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

/* ラジオボタンとチェックボックス */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label,
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, #16213e, #0f3460);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.9rem !important;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: rgba(57, 255, 20, 0.4);
    background: linear-gradient(145deg, #1a2555, #0f3460);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.radio-custom,
.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(57, 255, 20, 0.4);
    border-radius: 50%;
    position: relative;
    background: transparent;
}

.checkbox-custom {
    border-radius: 3px;
}

.radio-label input[type="radio"]:checked + .radio-custom::after,
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #39FF14;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    width: 6px;
    height: 10px;
    background: transparent;
    border: 2px solid #39FF14;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
    border-radius: 0;
    box-shadow: none;
}

/* 送信ボタン拡張 */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #39FF14, #2ecc71, #39FF14);
    background-size: 200% 200%;
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(57, 255, 20, 0.4),
        0 0 0 3px rgba(57, 255, 20, 0.2);
}

.submit-btn:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }
    
    .radio-label,
    .checkbox-label {
        justify-content: flex-start;
    }
    
    .form-message {
        padding: 0.8rem 1rem;
    }
    
    .message-content {
        gap: 0.5rem;
    }
}

/* フォーム行レイアウト */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* 必須マーク */
.required {
    color: #ff4757;
    font-weight: bold;
}

/* ローディング状態 */
.submit-btn.loading {
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #1a1a2e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

