* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
}

body {
    background: var(--emerald-300);
    color: var(--emerald-900);
    font-family: Arial, Helvetica, sans-serif;
}

main {
    max-width: 1200px;
    margin: 32px auto;
    display: flex;
    justify-content: center;
}

button {
    border: none;
}

.contact_box {
    background-color: var(--emerald-100);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0px 2px 16px var(--emerald-500);
}

header {
    text-align: center;
    margin-bottom: 56px;
}

.main_title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 1.25rem;
}

.field,
.textarea_field {
    position: relative;
    margin-bottom: 20px;
}

input,
textarea {
    border: none;
    width: 100%;
    padding: 16px 8px;
    background-color: var(--emerald-50);
    font-size: 16px;
    border-radius: 8px;
    outline: none;
}

textarea {
    min-height: 120px;
    max-height: 400px;
    resize: none;
}

input:focus,
textarea:focus {
    box-shadow: 0px 2px 4px var(--emerald-500);
}


.field_label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    z-index: 999;
    color: var(--emerald-500);
    transition: all 0.3s ease;
}

.move_label_up {
    top: -10px;
    transform: none;
    color: var(--emerald-800);
}

.textarea_label {
    position: absolute;
    z-index: 999;
    top: 16px;
    left: 12px;
    transition: all 0.3s ease;
    color: var(--emerald-500);
}

.textarea_label_up {
    color: var(--emerald-800);
    top: -10px;
}

.submit_container {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.submit_btn {
    background-color: var(--emerald-600);
    color: var(--emerald-50);
    padding: 12px 32px;
    display: flex;
    border-radius: 8px;
    box-shadow: 0px 2px 8px var(--emerald-500);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.submit_btn:hover {
    box-shadow: 0px 2px 8px var(--emerald-700);
}

@media (max-width: 600px) {

    .contact_box {
        padding: 32px 24px;
    }

    .main_title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .contact_box {
        padding: 20px 16px;
        box-shadow: 0px 1px 6px var(--emerald-400);
    }

    .main_title {
        font-size: 1.25rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    input:focus,
    textarea:focus {
        box-shadow: 0px 2px 4px var(--emerald-300);
    }
}