/* ====================================
   css/form.css - Contact Form Styles
   Font: Asap
   ==================================== */

/* ==================
   CONTACT HERO
   ================== */
.reldev-form-main-hero {
    /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 94px = 184px total */
    margin-top: 184px;
    padding: 5rem 0;
    background: linear-gradient(135deg, #197939 0%, #145a2c 100%);
    text-align: center;
}

.reldev-form-main-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.reldev-form-main-hero-title {
    font-family: 'Asap', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.reldev-form-main-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

.reldev-form-main-hero-content p {
    font-family: 'Asap', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==================
   CONTACT FORM SECTION
   ================== */
.reldev-form-main-section {
    padding: 7rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-top.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.reldev-form-main-wrapper {
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    border-top: 4px solid #197939;
}

.reldev-form-main-wrapper h2 {
    text-align: center;
    font-family: 'Asap', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

.reldev-form-main-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #197939, #145a2c);
    border-radius: 2px;
}

.reldev-form-main-form {
    margin-top: 2.5rem;
}

.reldev-form-main-group {
    margin-bottom: 1.75rem;
}

.reldev-form-main-group input,
.reldev-form-main-group textarea {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Asap', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
}

.reldev-form-main-group input:focus,
.reldev-form-main-group textarea:focus {
    outline: none;
    border-color: #197939;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 121, 57, 0.1);
}

.reldev-form-main-group input::placeholder,
.reldev-form-main-group textarea::placeholder {
    color: #999;
    font-weight: 400;
    font-family: 'Asap', sans-serif;
}

.reldev-form-main-button {
    width: 100%;
    background: linear-gradient(135deg, #197939 0%, #145a2c 100%);
    color: #ffffff;
    padding: 1.35rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Asap', sans-serif;
    box-shadow: 0 4px 15px rgba(25, 121, 57, 0.25);
    -webkit-appearance: none;
    appearance: none;
}

.reldev-form-main-button:hover {
    background: linear-gradient(135deg, #145a2c 0%, #197939 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(25, 121, 57, 0.4);
}

.reldev-form-main-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(25, 121, 57, 0.3);
}

/* ==================
   LOADING OVERLAY
   ================== */
.reldev-form-overlay-new-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.reldev-form-overlay-new-container.active {
    display: flex;
}

.reldev-form-overlay-new-spinner {
    text-align: center;
    color: #ffffff;
}

.reldev-form-overlay-new-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #197939;
    border-radius: 50%;
    animation: reldev-form-overlay-new-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes reldev-form-overlay-new-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reldev-form-overlay-new-spinner p {
    font-family: 'Asap', sans-serif;
    font-size: 1.1rem;
    margin: 0;
}

/* ==================
   RESPONSIVE
   ================== */

/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .reldev-form-main-hero {
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
        padding: 4.5rem 0;
    }
    
    .reldev-form-main-hero-title {
        font-size: 2.5rem;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 1.1rem;
    }
    
    .reldev-form-main-wrapper {
        max-width: 650px;
        padding: 3.5rem 2.75rem;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 2.25rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .reldev-form-main-hero {
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
        padding: 4rem 0;
    }
    
    .reldev-form-main-hero-content {
        padding: 0 2rem;
    }
    
    .reldev-form-main-hero-title {
        font-size: 2.25rem;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 1.05rem;
    }
    
    .reldev-form-main-section {
        padding: 6rem 0;
    }
    
    .reldev-form-main-wrapper {
        max-width: 600px;
        padding: 3.25rem 2.5rem;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 2.15rem;
        padding-bottom: 1.25rem;
    }
    
    .reldev-form-main-form {
        margin-top: 2.25rem;
    }
}

/* Mobile - Top bar hidden, only nav visible */
@media (max-width: 768px) {
    .reldev-form-main-hero {
        /* No top bar, Nav only: padding 0.75rem*2 (24px) + logo 61px = 85px */
        margin-top: 85px;
        padding: 3.5rem 0;
    }
    
    .reldev-form-main-hero-content {
        padding: 0 1.5rem;
    }
    
    .reldev-form-main-hero-title {
        font-size: 2rem;
    }
    
    .reldev-form-main-hero-title::after {
        width: 70px;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 1rem;
    }
    
    .reldev-form-main-section {
        padding: 5rem 0;
        background-attachment: scroll;
    }
    
    .reldev-form-main-wrapper {
        margin: 0 1.5rem;
        padding: 3rem 2rem;
        max-width: none;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 2rem;
        padding-bottom: 1.25rem;
    }
    
    .reldev-form-main-form {
        margin-top: 2rem;
    }
    
    .reldev-form-main-group {
        margin-bottom: 1.5rem;
    }
    
    .reldev-form-main-group input,
    .reldev-form-main-group textarea {
        padding: 1rem 1.125rem;
        font-size: 16px;
    }
    
    .reldev-form-main-button {
        padding: 1.25rem 1rem;
        font-size: 1.08rem;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .reldev-form-main-hero {
        margin-top: 85px;
        padding: 3rem 0;
    }
    
    .reldev-form-main-hero-content {
        padding: 0 1.25rem;
    }
    
    .reldev-form-main-hero-title {
        font-size: 1.85rem;
    }
    
    .reldev-form-main-hero-title::after {
        width: 60px;
        height: 3px;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 0.95rem;
    }
    
    .reldev-form-main-section {
        padding: 4.5rem 0;
    }
    
    .reldev-form-main-wrapper {
        margin: 0 1.25rem;
        padding: 2.75rem 1.75rem;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 1.85rem;
        padding-bottom: 1rem;
    }
    
    .reldev-form-main-wrapper h2::after {
        width: 60px;
        height: 3px;
    }
    
    .reldev-form-main-form {
        margin-top: 1.75rem;
    }
    
    .reldev-form-main-group {
        margin-bottom: 1.35rem;
    }
    
    .reldev-form-main-group input,
    .reldev-form-main-group textarea {
        padding: 1rem;
        border-radius: 6px;
    }
    
    .reldev-form-main-button {
        padding: 1.15rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .reldev-form-main-hero {
        /* Nav: padding 0.75rem*2 (24px) + logo 55px = 79px */
        margin-top: 79px;
        padding: 2.5rem 0;
    }
    
    .reldev-form-main-hero-content {
        padding: 0 1rem;
    }
    
    .reldev-form-main-hero-title {
        font-size: 1.65rem;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 0.9rem;
    }
    
    .reldev-form-main-section {
        padding: 4rem 0;
    }
    
    .reldev-form-main-wrapper {
        margin: 0 1rem;
        padding: 2.5rem 1.5rem;
        border-radius: 10px;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 1.75rem;
    }
    
    .reldev-form-main-group {
        margin-bottom: 1.25rem;
    }
    
    .reldev-form-main-group input,
    .reldev-form-main-group textarea {
        padding: 0.95rem;
        font-size: 16px;
    }
    
    .reldev-form-main-button {
        padding: 1.1rem 1rem;
        font-size: 0.98rem;
    }
}

/* Smallest mobile */
@media (max-width: 375px) {
    .reldev-form-main-hero {
        margin-top: 79px;
        padding: 2rem 0;
    }
    
    .reldev-form-main-hero-content {
        padding: 0 0.75rem;
    }
    
    .reldev-form-main-hero-title {
        font-size: 1.5rem;
        padding-bottom: 0.875rem;
    }
    
    .reldev-form-main-hero-title::after {
        width: 50px;
    }
    
    .reldev-form-main-hero-content p {
        font-size: 0.85rem;
    }
    
    .reldev-form-main-section {
        padding: 3.5rem 0;
    }
    
    .reldev-form-main-wrapper {
        margin: 0 0.75rem;
        padding: 2rem 1.25rem;
        border-radius: 8px;
    }
    
    .reldev-form-main-wrapper h2 {
        font-size: 1.6rem;
        padding-bottom: 0.875rem;
    }
    
    .reldev-form-main-wrapper h2::after {
        width: 50px;
    }
    
    .reldev-form-main-form {
        margin-top: 1.5rem;
    }
    
    .reldev-form-main-group {
        margin-bottom: 1.15rem;
    }
    
    .reldev-form-main-group input,
    .reldev-form-main-group textarea {
        padding: 0.875rem;
        font-size: 16px;
        border-width: 1.5px;
    }
    
    .reldev-form-main-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
}