* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: black;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    overflow-y: auto;
}

main {
    margin: 5vh auto; 
    width: 40dvw;
    min-height: 78dvh;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

form {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

form div br {
    align-items: center;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group.full-width {
    width: 100%;
}

label {
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

input, textarea {
    width: 100%;
    background-color: rgba(22, 22, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    padding: 12px 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, textarea:focus {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

textarea {
    min-height: 150px;
    max-height: 300px;
    resize: vertical;
}

#counter {
    text-align: right;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
    width: 100%;
    display: block;
}

button[type="submit"] {
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #4a4a4a, #2b2b2b);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    cursor: pointer;
    align-self: center;
    transition: transform 0.2s, background 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

button[type="submit"]:hover {
    background: linear-gradient(45deg, #5a5a5a, #3b3b3b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.plane-send {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 20px;
    background-image: url(/icons/send.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 768px) {
    main {
        width: 90dvw;
        height: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

@font-face {
    font-family: 'Brithstone';
    src: url('/fonts/Birthstone-Regular.woff2') format('woff2');
}