:root {
    --primary-color: #4A148C;
    --primary-dark: #311B92;
    --text-color: #000000;
    --hint-color: #9E9E9E;
    --bg-color: #FDFBFF;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --error-color: #D32F2F;
    --success-color: #388E3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(74, 20, 140, 0.05);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.description {
    font-size: 16px;
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

textarea, input[type="email"] {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    background-color: #FAFAFA;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

textarea {
    height: 160px;
    resize: none;
}

textarea::placeholder, input::placeholder {
    color: var(--hint-color);
}

textarea:focus, input:focus {
    border-color: var(--primary-color);
    background-color: #FFF;
    box-shadow: 0 0 0 4px rgba(74, 20, 140, 0.08);
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cancel {
    background-color: #F5F5F5;
    color: #666;
}

.btn-cancel:hover {
    background-color: #EEEEEE;
}

.btn-send {
    background-color: var(--primary-color);
    color: white;
}

.btn-send:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.2);
}

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

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

/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    background-color: #FFFFFF;
    color: #333;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
    border-left: 6px solid var(--primary-color);
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.4s ease;
}

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

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 14px;
    color: #666;
}

.toast.success {
    border-left-color: #00C853;
}

.toast.error {
    border-left-color: #FF1744;
}

.toast.hide {
    animation: toastSlideOut 0.5s ease-in forwards;
}

@keyframes toastSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(100px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from { 
        opacity: 1; 
        transform: translateX(0);
    }
    to { 
        opacity: 0; 
        transform: translateX(20px);
    }
}

@media (max-width: 600px) {
    .toast-container {
        top: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px;
        align-items: flex-start;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 20px;
        box-shadow: none;
        background-color: transparent;
    }

    h1 {
        font-size: 24px;
    }
}
