* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 28px;
}

.card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    transform-style: preserve-3d;
    transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover {
    box-shadow: 0 12px 34px rgba(2,6,23,0.6);
}

.header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #022;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(3,7,18,0.6);
}

.meta .name {
    font-weight: 800;
    font-size: 20px;
}

.meta .title {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.desc {
    margin: 10px 0 16px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

form {
    display: grid;
    gap: 10px;
}

label {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    display: block;
    margin-bottom: 6px;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: var(--font-white, #ffffff);
    font-size: 14px;
}

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

.row {
    display: flex;
    gap: 10px;
}

.col {
    flex: 1;
}

.company {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.company-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.muted {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    display: inline-grid;
    place-items: center;
    color: var(--accent, #2dd4bf);
    border: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.btn {
    background: var(--accent, #2dd4bf);
    color: #022;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    color: var(--font-white, #ffffff);
    border: 1px solid rgba(255,255,255,0.06);
}

.message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(45,212,191,0.12);
    color: var(--accent, #2dd4bf);
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}

/* focus styles for accessibility */
input:focus, textarea:focus, .icon-btn:focus, .btn:focus {
    outline: 3px solid rgba(45,212,191,0.18);
    outline-offset: 3px;
}

/* popup styles after sending a message */
.send-popup {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: rgba(2,6,23,0.95);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 2000;
    pointer-events: none;
}

.send-popup.visible{
    opacity: 1;
    transform: translateY(0); pointer-events:auto;
    transform: translateY(0);
    pointer-events: auto;
}

.send-popup-inner{
    width: 220px;
}

.send-popup-text{
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.send-popup-progress{
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}

.send-popup-bar{
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,var(--accent, #2dd4bf), var(--accent-2,#60a5fa));
}
