/* 문의하기 페이지 전용 스타일 */

/* CSS 변수 정의 */
:root {
    --primary-blue: #476ef3;
    --gray-800: #1a202c;
    --gray-700: #2d3748;
    --gray-600: #4a5568;
    --gray-500: #718096;
    --gray-400: #a0aec0;
    --gray-300: #cbd5e0;
    --gray-200: #e2e8f0;
    --gray-100: #f7fafc;
}

/* 문의 섹션 */
.inquiry-section {
    padding: 60px 0;
    background: #f8fafc;
}

.inquiry-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 문의 유형 선택 */
.inquiry-type-section {
    background: var(--primary-blue);
    padding: 40px;
    color: white;
}

.inquiry-type-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.type-option {
    cursor: pointer;
}

.type-option input[type="radio"] {
    display: none;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.type-option input[type="radio"]:checked + .option-card {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.option-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.option-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.option-card p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* 폼 섹션 */
.form-section {
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(71, 110, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group small {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* 라디오 버튼 그룹 */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: #f0f4ff;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-blue);
}

.radio-option span {
    font-size: 14px;
    font-weight: 500;
}

/* 개인정보처리방침 */
.privacy-section {
    padding: 40px;
    background: #f8fafc;
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.privacy-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.privacy-text {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 16px 0;
}

.privacy-details p {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 12px 0 8px 0;
}

.privacy-details ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.privacy-details li {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 4px;
}

.privacy-agree {
    padding: 20px 24px;
    background: #f8fafc;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-blue);
}

.agree-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

/* 제출 섹션 */
.submit-section {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
    font-size: 20px;
}

.submit-info {
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.submit-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.submit-info a:hover {
    text-decoration: underline;
}

/* 표준사업장 전용 필드 */
.standard-only {
    display: block;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .type-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inquiry-section {
        padding: 40px 0;
    }
    
    .inquiry-type-section,
    .form-section,
    .privacy-section,
    .submit-section {
        padding: 24px;
    }
    
    .type-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .option-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .option-card h4 {
        font-size: 16px;
    }
    
    .option-card p {
        font-size: 13px;
    }
    
    .inquiry-type-section h3,
    .form-section h3,
    .privacy-section h3 {
        font-size: 18px;
    }
    
    .form-grid {
        gap: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .privacy-text {
        padding: 20px;
    }
    
    .privacy-agree {
        padding: 16px 20px;
    }
    
    .submit-btn {
        padding: 14px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .inquiry-type-section,
    .form-section,
    .privacy-section,
    .submit-section {
        padding: 20px;
    }
    
    .option-card {
        padding: 16px;
    }
    
    .option-icon {
        font-size: 36px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .privacy-text {
        padding: 16px;
    }
    
    .privacy-details p {
        font-size: 13px;
    }
    
    .privacy-details li {
        font-size: 12px;
    }
    
    .submit-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
}
