.toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.toast-container.show {
    opacity: 1;
    visibility: visible;
}

.toast {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: toastScaleIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-width: 380px;
    width: 88vw;
}

.toast-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
}

.toast.success .toast-icon { background: #0068dd; }

.toast.error .toast-icon { background: #e74c3c; }

.toast p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

@keyframes toastScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}
.contact-overlay.show {
    visibility: visible;
    opacity: 1;
}

.contact-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: contactSlideUp 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes contactSlideUp {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 0 32px;
}

.contact-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    background: #f0f0f0;
    color: #333;
}

.contact-modal-body {
    padding: 28px 32px 32px 32px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    font-size: 15px;
    font-family: inherit;
    color: #000;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #0068dd;
}

.form-group textarea {
    resize: none;
    min-height: 160px;
}

.form-group.required::after {
    content: '*';
    position: absolute;
    top: 6px;
    right: 0;
    color: #e74c3c;
    font-size: 16px;
    line-height: 1;
}

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

.form-group.error input,
.form-group.error textarea {
    border-bottom-color: #e74c3c;
}

.form-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0068dd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #0055b3;
}

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

@media (max-width: 768px) {
    .contact-modal {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }

    .contact-modal-header {
        padding: 24px 24px 0 24px;
    }

    .contact-modal-body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
    .toast {
        padding: 32px 24px;
    }
    .toast p {
        font-size: 15px;
    }
    .contact-modal-header h2 {
        font-size: 18px;
    }
    .btn-submit {
        font-size: 15px;
        padding: 12px;
    }
}
