/* ============================================================
   Inquiry Form Styles
   ============================================================ */

/* Container and Wrapper */
.inquiry-form-container {
    min-height: calc(100vh - 400px);
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
}

.inquiry-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
}

@media (max-width: 768px) {
    .inquiry-form-container {
        padding: 40px 15px;
    }

    .inquiry-form-wrapper {
        padding: 30px 20px;
    }
}

/* Form Structure */
.inquiry-form {
    width: 100%;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    text-transform: none;
}

.form-label a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.form-label a:hover {
    text-decoration: underline;
}

/* Form Controls */
.form-control,
.form-textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2d3748;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: #fff;
}

.form-control.error,
.form-textarea.error {
    border-color: #f56565;
    background-color: #fff5f5;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

/* Form Hints */
.form-hint {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

/* Error Messages */
.form-error {
    display: none;
    font-size: 13px;
    color: #f56565;
    margin-top: 6px;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-area:hover {
    border-color: #0066cc;
    background: #f0f5ff;
}

.file-upload-area.drag-over {
    border-color: #0066cc;
    background: #f0f5ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: #718096;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin: 0;
}

.upload-hint {
    font-size: 12px;
    color: #718096;
    margin: 8px 0 0 0;
}

/* File Preview */
.file-preview {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.file-preview.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #f0f5ff;
    border: 1px solid #0066cc;
    border-radius: 6px;
    gap: 10px;
}

.file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: #718096;
}

.file-remove-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: #f56565;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove-btn:hover {
    color: #e53e3e;
    transform: scale(1.1);
}

/* Checkbox Group */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0066cc;
}

.checkbox-text {
    color: #2d3748;
}

.checkbox-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0052a3 0%, #003f7f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
    min-height: 44px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 40px 24px;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
}

.success-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
}

.success-message {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 640px) {
    .inquiry-form-wrapper {
        padding: 25px 15px;
    }

    .form-section {
        margin-bottom: 30px;
    }

    .form-section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-body {
        padding: 30px 20px;
    }
}

/* Accessibility */
.form-control:focus,
.form-textarea:focus,
.checkbox-input:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print */
@media print {
    .form-actions {
        display: none;
    }
}

/* ============================================================
   Spam Protection - Honeypot Fields (Hidden)
   ============================================================ */
/* 봇 탐지용 허니팟 필드 - 사용자에게 보이지 않음 */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* 스팸 경고 메시지 스타일 */
.spam-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.spam-warning.show {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}