
.contact-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, z-index 0s 0.3s;
}

.contact-modal-backdrop.active {
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.contact-modal::-webkit-scrollbar {
    width: 8px;
}

.contact-modal::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 20px 0;
}

.contact-modal::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    margin: 20px 0;
}

.contact-modal::-webkit-scrollbar-thumb:hover {
    background: #444;
    background-clip: content-box;
}

.contact-modal::-webkit-scrollbar-corner {
    background: transparent;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1a1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label.required::after {
    content: ' *';
    color: #ff6b6b;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: #222;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #444;
}

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

/* 에러 상태 스타일 */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff6b6b;
    background: #2a1a1a;
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.error-message {
    margin-top: 8px;
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 500;
    animation: errorSlideIn 0.3s ease;
}

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

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #ff002c, #4c00cc);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: #333;
    color: #ffffff;
    border: 1px solid #555;
}

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

@media (max-width: 768px) {
    .contact-modal {
        padding: 24px;
        margin: 16px;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-modal-title {
        font-size: 24px;
    }
}
