/* =========================
   CONTACTS - CNC SYSTEM UI PRO MAX
========================= */

.contacts {
    position: relative;
    padding: 100px 0;
    overflow: hidden;

    /* BASE METAL */
    background-image: linear-gradient(135deg, #eef1f4, #e3e7ec),
    repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 3px
    );
}

/* CAD GRID */
.contacts::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(120, 130, 140, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 140, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* NOISE */
.contacts::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.3;
    pointer-events: none;
}

/* CURSOR GLOW LAYER */
.contacts .cursor-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
    opacity: 0;
}

/* GRID */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* TITLE */
.contacts-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 50px;
    color: #1a1d21;
}

/* INFO */
.contacts-block {
    margin-bottom: 35px;
}

.contacts-block span {
    display: block;
    font-size: 11px;
    color: #8b949e;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.contacts-block p {
    font-size: 19px;
    font-weight: 500;
    color: #2b3137;
}

/* FORM */
.contacts-form-wrapper {
    position: relative;
    padding: 60px;
    background: linear-gradient(145deg, #111418, #0c0f13);
    border: 1px solid #2c3238;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: 0.3s;
}

/* TOP LINE */
.contacts-form-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3a4046, #9aa4ad, #3a4046);
}

/* ANIMATION */
.contacts-form-wrapper::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9aa4ad, transparent);
    top: 25%;
    left: -50%;
    animation: techLine 6s linear infinite;
}

@keyframes techLine {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

/* INPUTS */
.input-group {
    position: relative;
    margin-bottom: 40px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #3a4046;
    padding: 14px 0;
    color: #d5dbe1;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #c0c7cf;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 13px;
    color: #7c8791;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -12px;
    font-size: 10px;
    color: #c0c7cf;
}

textarea {
    min-height: 120px;
    resize: none;
}

/* BUTTON */
.btn-mech {
    width: 100%;
    padding: 18px;
    border: 1px solid #4a5158;
    background: linear-gradient(145deg, #1a1f25, #12161b);
    color: #d0d6dc;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
}

.btn-mech:hover {
    border-color: #9aa4ad;
    box-shadow: 0 0 15px rgba(150, 160, 170, 0.2);
}

.btn-mech:active {
    transform: scale(0.97);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* GLOBAL */
input, textarea, button {
    font-family: inherit;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contacts-form-wrapper {
        padding: 35px;
    }
}

.contacts-block a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-top: 5px;
    transition: 0.3s;
}

.contacts-block a:hover {
    color: #ffffff;
}