/* Forms & Inputs */

.form-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

form {
    background: linear-gradient(
        135deg,
        rgba(27, 77, 62, 0.2),
        rgba(27, 77, 62, 0.1)
    );
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    width: 100%;
    flex: 1;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-success {
    display: none;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(27, 77, 62, 0.3),
        rgba(27, 77, 62, 0.15)
    );
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    text-align: center;
    min-height: 250px;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    animation: checkmark-pop 0.4s ease;
}

.form-success h3 {
    color: var(--color-accent-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.form-success p {
    color: var(--color-light);
    opacity: 0.9;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(31, 31, 31, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-light);
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent-light);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background-color: rgba(31, 31, 31, 0.95);
}

label {
    display: block;
    margin-bottom: 0.35rem;
    margin-top: 0;
    font-weight: 600;
    color: var(--color-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

label:first-of-type {
    margin-top: 0;
}

textarea {
    resize: vertical;
    min-height: 90px;
    font-family: "Inter", sans-serif;
    flex: 1;
}

form > label {
    margin-top: 0.75rem;
}

form button[type="submit"] {
    width: 100%;
    margin-top: var(--spacing-md);
    padding: 0.75rem var(--spacing-md);
}

@media (max-width: 768px) {
    form {
        padding: var(--spacing-md);
        margin: 0 auto;
    }

    .form-success {
        margin: 0 auto;
        padding: var(--spacing-lg);
        min-height: 200px;
    }

    .success-icon {
        font-size: 3rem;
    }

    .form-success h3 {
        font-size: 1.25rem;
    }

    label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    input,
    textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    textarea {
        min-height: 70px;
    }

    form > label {
        margin-top: 0.5rem;
    }

    form button[type="submit"] {
        padding: 0.65rem var(--spacing-sm);
        font-size: 0.85rem;
    }
}
