#contact-section {
    margin: 0 2.5rem;
    text-align: center;
    /* ensures inner flex elements (like your row) stay centered */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-section h4 {
    margin-bottom: 0.5rem;
}

form {
    width: 100%;
    max-width: 600px;
    /* perfect width for a form */
    margin: 0 auto;
    /* ensures center alignment */
}

/* CENTERING THE ROW */
.row {
    display: flex;
    justify-content: center;
    /* center the two inputs */
    align-items: center;
    gap: 20px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    margin-bottom: 25px;
    flex: 1;
    /* both inputs take equal width */
}

.input-group.full {
    width: 100%;
}

/* FLOATING LABEL */
.input-group label {
    font-family: consolas, sans-serif;
    position: absolute;
    left: 12px;
    top: 16px;
    color: lightgrey;
    background: transparent;
    /* Always transparent */
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
    transition: 0.3s ease;
    background: transparent;
}

.input-group input,
.input-group textarea {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 10px;
    outline: none;

    /* Transparent border but gradient wrapper */
    border: 2px solid black;

    transition: 0.35s ease;
    transition: border 0.3s smooth;
}

/* Animated border glow on focus */
.input-group input:focus,
.input-group textarea:focus {
    border: 3px solid #1F93FF;
    animation: glowBorder 2s ease infinite;
}

@keyframes glowBorder {
    0% {
        box-shadow: 0 0 0px #93b8d34d;
    }

    50% {
        box-shadow: 0 0 24px #1F93FF;
    }

    100% {
        box-shadow: 0 0 0px #93b8d34d;
    }
}

/* When focused or typed in */
.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -16px;
    left: 10px;
    font-size: 13px;
    background: transparent;
    /* Make sure it's transparent */
    padding: 0 6px;
    color: #4a4a4a;
}

textarea {
    height: 130px;
    resize: none;
}

.send-btn {
    padding: 1em 2em;
    position: relative;
    border-radius: 100px;
    font-weight: 600;
    border: 3px solid black;

    font-size: medium;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E7E7E7;
    color: black;
    cursor: pointer;
    background-clip: text;
    transition: transform ease-in 0.3s, box-shadow ease-in 0.25s;
    box-shadow: rgba(0, 0, 0, 0.392) 0px 18px 50px -10px;
}

.send-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.status {
    margin-top: 15px;
    font-size: 16px;
}

/* STACK INPUTS ON SMALL SCREENS */
@media (max-width: 650px) {
    #contact-section {
        margin: 0 1rem;
    }

    .row {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .row .input-group {
        width: 100%;
    }
}