@font-face {
    font-family: 'vazir';
    src: url('../fonts/Vazir.ttf');
}
* {
    box-sizing: border-box;
    font-family: 'vazir';
}

body {
    margin: 0;
    background: #f6f9f6;
}

.contact-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.form-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 26px;
    padding: 40px 35px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(49, 193, 49, 0.08);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top,
            rgba(49, 193, 49, 0.18),
            transparent 55%);
    pointer-events: none;
}

.form-card h1 {
    color: #31c131;
    margin-bottom: 5px;
    font-size: 30px;
}

.form-card p {
    margin-bottom: 30px;
    color: #555;
    font-size: 14px;
}

.field {
    position: relative;
    margin-bottom: 25px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    border: 1.5px solid #ddd;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: 0.35s;
}

.field label {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    color: #888;
    font-size: 13px;
    pointer-events: none;
    transition: 0.3s;
}

.field textarea+label {
    top: 18px;
    transform: none;
}

.field input:focus,
.field textarea:focus {
    border-color: #31c131;
    box-shadow: 0 0 0 4px rgba(49, 193, 49, 0.15);
}

.field input:focus+label,
.field textarea:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 11px;
    color: #31c131;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #31c131, #7CFF7C);
    color: #000;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.35s;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(49, 193, 49, 0.45);
}