
/* ==========================================
   RS PREMIUM FORM - COMPLETE CSS
========================================== */

.rs-form-section {
    position: relative;
    display: block;
    clear: both;
    z-index: 1;
    width: 100%;
    min-height: 400px;
    padding: 110px 5% 65px !important;
    margin-top: 0 !important;
    overflow: hidden;
    font-family: inherit;

    background:
        radial-gradient(
            ellipse at 15% 20%,
            rgba(36, 112, 166, 0.13),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 85% 90%,
            rgba(34, 102, 150, 0.10),
            transparent 40%
        ),
        #071522 !important;
}

.rs-form-section *,
.rs-form-section *::before,
.rs-form-section *::after {
    box-sizing: border-box;
}

.rs-form-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.rs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
    background: transparent !important;
}

/* ==========================================
   INPUT GROUP
========================================== */

.rs-form-group {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 58px;
    background: #0d2131;
    border: 1px solid rgba(105, 166, 202, 0.22);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.rs-form-group:hover {
    border-color: rgba(83, 180, 229, 0.5);
}

.rs-form-group:focus-within {
    border-color: #50b3e5;
    background: #102a40;
    box-shadow: 0 0 0 3px rgba(80, 179, 229, 0.09);
}

/* ==========================================
   SVG ICONS
========================================== */

.rs-form-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 49px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60b8e5;
    background: rgba(74, 157, 203, 0.08);
    border-right: 1px solid rgba(105, 166, 202, 0.18);
    pointer-events: none;
    transition: all 0.3s ease;
}

.rs-form-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.rs-form-group:hover .rs-form-icon svg {
    transform: scale(1.08);
}

.rs-form-group:focus-within .rs-form-icon {
    color: #ffffff;
    background: rgba(65, 164, 218, 0.18);
}

/* ==========================================
   INPUTS
========================================== */

.rs-form-group input:not([type="file"]),
.rs-form-group textarea {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 66px;
    border: none;
    outline: none;
    background: transparent;
    color: #f3f7fa;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
}

.rs-form-group input::placeholder,
.rs-form-group textarea::placeholder {
    color: #91a4b4;
    opacity: 1;
}

/* ==========================================
   FILE UPLOAD
========================================== */

.rs-form-upload {
    overflow: hidden;
}

.rs-form-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.rs-form-upload label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding-left: 66px;
    padding-right: 10px;
    cursor: pointer;
    overflow: hidden;
}

.rs-form-file-btn {
    flex-shrink: 0;
    padding: 9px 13px;
    color: #ffffff;
    background: #174e73;
    border: 1px solid rgba(91, 183, 231, 0.3);
    font-size: 11px;
    border-radius: 2px;
}

.rs-form-file-name {
    color: #8fa5b6;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   COMMENTS TEXTAREA
========================================== */

.rs-form-message {
    grid-column: 1 / -1;
    height: 125px;
    align-items: stretch;
}

.rs-form-group textarea {
    min-height: 125px;
    padding-top: 19px;
    padding-bottom: 15px;
    line-height: 1.7;
    resize: vertical;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.rs-form-button-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.rs-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-width: 200px;
    height: 54px;
    padding: 0 20px;
    border: 1px solid #2996ce;
    border-radius: 3px;
    background: linear-gradient(110deg, #155b98, #268fc5);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rs-form-submit:hover {
    background: linear-gradient(110deg, #2186c3, #46b8e5);
    box-shadow: 0 8px 25px rgba(38, 151, 207, 0.2);
    transform: translateY(-2px);
}

.rs-form-submit span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.rs-form-submit:hover span {
    transform: translate(3px, -3px);
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .rs-form-section {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .rs-form-section {
        padding: 30px 18px 45px !important;
        min-height: auto;
    }

    .rs-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rs-form-message,
    .rs-form-button-wrap {
        grid-column: auto;
    }

    .rs-form-button-wrap {
        justify-content: stretch;
    }

    .rs-form-submit {
        width: 100%;
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .rs-form-file-btn {
        padding: 8px;
    }

    .rs-form-upload label {
        gap: 7px;
    }

    .rs-form-file-name {
        font-size: 10px;
    }

}
