* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #faf8f5;
    color: #121212;
    font-family: 'Space Mono', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    padding: 0;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #121212;
    padding-bottom: 1rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.form-container {
    display: block;
    width: 100%;
}

.form-control {
    margin-bottom: 1.8rem;
}

.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.control-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-icon i {
    display: none;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.form-control:has(.form-textarea:valid) i.fa-check-circle {
    display: inline-block;
    color: #2e7d32;
}

.form-control:has(.form-textarea:invalid:placeholder-shown) i.fa-exclamation-circle {
    display: none;
}

.form-control:has(.form-textarea:invalid:not(:placeholder-shown)) i.fa-exclamation-circle {
    display: inline-block;
    color: #d32f2f;
}

.form-textarea,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #121212;
    background-color: #ffffff;
    color: #121212;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 2px 2px 0px #121212;
    outline: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.form-textarea {
    resize: vertical;
}

.form-textarea:focus,
.form-input:focus {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #121212;
}

.textlarge {
    min-height: 14rem;
}

.textmedium {
    min-height: 8rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #121212;
}

.form-select {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #121212;
    background-color: #ffffff;
    color: #121212;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 2px 2px 0px #121212;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.form-select:focus {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #121212;
}

.buttondiv {
    margin-top: 2rem;
}

.button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #121212;
    color: #ffffff;
    border: 2px solid #121212;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 2px 2px 0px #121212;
    transition: all 0.1s ease;
    text-align: center;
}

.button:hover {
    background-color: #242424;
}

.button:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #121212;
}

form:invalid .buttondiv #submit {
    background-color: #e0e0e0;
    color: #888888;
    border-color: #888888;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.progress-bar-container {
    display: none;
    text-align: center;
    margin: 3rem 0;
}

.progress-bar-container h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 20px;
    border: 2px solid #121212;
    background-color: #ffffff;
    box-shadow: 2px 2px 0px #121212;
    overflow: hidden;
}

.progress-bar>div {
    width: 0%;
    height: 100%;
    background-color: #121212;
    transition: width 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.result-container {
    display: none;
    margin-top: 2rem;
}

.result-container h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.container {
    border: 2px dashed #121212;
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 2px 2px 0px #121212;
}

.container p {
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.typed {
    color: #0000;
    background:
        linear-gradient(-90deg, #121212 5px, #0000 0) 10px 0,
        linear-gradient(#121212 0 0) 0 0;
    background-size: calc(var(--n) * 1ch) 200%;
    -webkit-background-clip: padding-box, text;
    background-clip: padding-box, text;
    background-repeat: no-repeat;
    animation:
        b .7s infinite steps(1),
        t calc(var(--n) * .03s) steps(var(--n)) forwards;
}

@keyframes t {
    from {
        background-size: 0 200%
    }
}

@keyframes b {
    50% {
        background-position: 0 -100%, 0 0
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #121212;
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #121212 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.apply-container {
    margin-top: 3rem;
    border-top: 2px solid #121212;
    padding-top: 2rem;
}

.apply-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #121212;
    background-color: #ffffff;
    color: #121212;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 2px 2px 0px #121212;
    outline: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #121212;
}

.form-footer {
    margin-top: 1.5rem;
}

.btn-contact {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #121212;
    color: #ffffff;
    border: 2px solid #121212;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 2px 2px 0px #121212;
    transition: all 0.1s ease;
    text-align: center;
}

.btn-contact:hover {
    background-color: #242424;
}

.btn-contact:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #121212;
}

.btn-contact:disabled {
    background-color: #e0e0e0;
    color: #888888;
    border-color: #888888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.status-msg {
    padding: 1rem;
    border: 2px solid #121212;
    margin: 1.5rem 0;
    font-weight: bold;
    box-shadow: 2px 2px 0px #121212;
    display: none;
}

.status-msg.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.status-msg.error {
    background-color: #ffebee;
    color: #d32f2f;
    border-color: #d32f2f;
}

.form-captcha-notice {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.4;
}

.form-captcha-notice a {
    color: #121212;
    text-decoration: underline;
}

.grecaptcha-logo,
.grecaptcha-badge {
    display: none !important;
}

@media (min-width: 600px) {
    .main-container {
        padding: 3rem 2rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .button {
        width: auto;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}