.contact-modal {
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 스크롤바 스타일 - 모달 hover 시에만 표시 */
.contact-modal::-webkit-scrollbar {
    width: 6px;
}

.contact-modal::-webkit-scrollbar-track {
    background: transparent;
}

.contact-modal::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

/* 모달 어디든 마우스 올리면 스크롤바 표시 */
.contact-modal:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

.contact-modal:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: #fafbfc;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.drop-zone {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafbfc;
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    border-width: 3px;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.drop-zone-text {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
}

.file-input {
    display: none;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-file-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.submit-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(255, 107, 107, 0.2));
    color: var(--text-primary);
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .contact-modal {
        max-width: 100%;
    }

    .modal-title {
        font-size: 1.6em;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .drop-zone {
        padding: 20px;
    }

    .drop-zone-icon {
        font-size: 36px;
    }

    .drop-zone-text {
        font-size: 14px;
    }

    .preview-image {
        width: 60px;
        height: 60px;
    }

    .submit-btn {
        padding: 16px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 1.4em;
    }

    .form-label {
        font-size: 13px;
    }

    .drop-zone {
        padding: 15px;
    }

    .drop-zone-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .drop-zone-text {
        font-size: 13px;
    }

    .file-name {
        max-width: 150px;
        font-size: 13px;
    }
}
