body {
    margin: 0;
    background: #f5f7fb;
    font-family: Arial;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 380px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group input:focus {
    border-color: #4c6fff;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #4c6fff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    /* background: #3b55d9; */
    background: #c8d1fa;
    color: #4c6fff;
}

.error {
    color: red;
    font-size: 13px;
}

#google-login-btn {
    width: 100%;
    padding: 9px;
    background: #4c6fff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    top: 9px;
    transition: 0.2s;
}

#google-login-btn:hover {
    background: #c8d1fa;
    color: #4c6fff;
    text-decoration: underline;
}

/* Trial error box */
* {
    box-sizing: border-box;
}

/* SweetAlert Custom Styling */
.swal2-popup {
    border-radius: 18px !important;
    padding: 15px 15px 15px 32px !important;
    background: #ffffff !important;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.06) !important;
    font-family: "Inter", "Segoe UI", sans-serif !important;
    border: 1px solid #f1f5f9 !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
    letter-spacing: -0.3px;
}

.swal2-html-container {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #64748b !important;
    margin: 0 0 26px 0 !important;
    padding: 0 !important;
}

.swal2-icon {
    margin: 0 auto 22px auto !important;
    transform: scale(1.05);
}

.swal2-actions {
    margin-top: 4px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 11px 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.25s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35) !important;
}

.swal2-confirm:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.swal2-close {
    color: #94a3b8 !important;
    font-size: 28px !important;
    transition: 0.2s ease;
}

.swal2-close:hover {
    color: #334155 !important;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px !important;
    overflow-y: auto;
}

.contact-modal-content {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 36px !important;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08),
        0 30px 80px rgba(15, 23, 42, 0.12);
    position: relative;
    animation: modernModalEnter 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
    margin: auto;
}

@keyframes modernModalEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.contact-close:hover {
    color: #0f172a;
    transform: rotate(90deg);
}

.contact-modal-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px !important;
    letter-spacing: -0.3px;
}

.contact-sub {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 28px !important;
}

#contact-form-element {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-modal .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-modal .form-group {
    margin-bottom: 0;
}

.contact-modal label {
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-modal input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 0 14px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-modal input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.contact-modal input::placeholder {
    color: #cbd5e1;
}

.contact-modal textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 12px 14px !important;
    font-size: 16px !important;
    background: #f8fafc !important;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
    color: #0f172a;
}
.contact-modal textarea:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.contact-modal textarea::placeholder {
    color: #cbd5e1;
}

.char-counter {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    text-align: right;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.critical {
    color: #ef4444;
}

.contact-custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.contact-dropdown-selected {
    height: 46px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 0 14px !important;
    display: flex;
    align-items: center;
    background: #f8fafc;
    font-size: 14px !important;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.contact-dropdown-selected::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    transition: 0.3s ease;
}

.contact-custom-dropdown.active .dropdown-selected {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.contact-custom-dropdown.active .dropdown-selected::after {
    transform: rotate(180deg);
    border-top-color: #2563eb;
}

.contact-dropdown-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    display: block !important;
}

.contact-custom-dropdown.active .dropdown-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-dropdown-option {
    padding: 12px 16px !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-dropdown-option:hover {
    background: #f1f5f9;
}

.contact-dropdown-option.selected {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-weight: 600;
}

.contact-modal .btn-primary {
    grid-column: 1 / -1;
    height: 48px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.contact-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.contact-modal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.required {
    color: #ef4444;
    margin-left: 3px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-modal-content {
        max-width: 95%;
        padding: 28px 20px !important;
    }

    #contact-form-element {
        grid-template-columns: 1fr;
    }

    .contact-modal .btn-primary {
        grid-column: 1;
    }

    .contact-modal-content h2 {
        font-size: 22px;
    }

    .contact-sub {
        margin-bottom: 20px;
    }
}
