:root {
    --primary: #bf0c32;  /* Deep Red */
    --primary-light: #d62e4e;
    --dark: #1d2327;     /* Dark Charcoal */
    --light: #f8f9fa;
    --gray: #6c757d;
    --glass-blur: 10px;
    --glass-opacity: 0.15;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #12181b 100%);
    color: #e9ecef;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.6s ease-out;
}

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

.card {
    background: rgba(29, 35, 39, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    padding: 40px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.subtitle {
    font-size: 16px;
    color: #adb5bd;
    font-weight: 400;
}

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

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

input, textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    color: white;
}

/* Special styling for Language dropdown only */
#language {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #bf0c32;
    background: #1d2327;
    color: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf0c32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

#language:focus {
    outline: none;
    border-color: #bf0c32;
    background: #1d2327;
    box-shadow: 0 0 0 3px rgba(191, 12, 50, 0.3);
}

/* Style dropdown options */
#language option {
    background: #1d2327;
    color: white;
    padding: 10px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(191, 12, 50, 0.2);
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.radio-option {
    flex: 1;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: #dee2e6;
}

.radio-option input:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(191, 12, 50, 0.3);
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: var(--dark);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-overlay.active .popup-card {
    transform: scale(1);
}

.popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.popup-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.popup-message {
    font-size: 15px;
    color: #adb5bd;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-close {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    background: var(--primary-light);
}

@media (max-width: 600px) {
    .card {
        padding: 30px;
    }

    .radio-group {
        flex-direction: column;
    }
}