/* ========================================
   SUFFOLK BUILDERS CONTACT FORM CSS
   ======================================== */

/* ========================================
   1. MAIN CONTACT FORM SECTION
   ======================================== */

.sbr-contact-form {
    background: url('/img/homepage-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0 6rem;
}

.sbr-contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sbr-contact-form-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.sbr-contact-form-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 4rem 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sbr-contact-form h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #333;
}

.sbr-contact-form p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: #555;
}

/* ========================================
   2. FORM STYLES
   ======================================== */

.sbr-form {
    text-align: left;
}

.sbr-form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.sbr-form-row:last-child {
    margin-bottom: 0;
    text-align: center;
}

.sbr-form input,
.sbr-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Gabarito', sans-serif;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sbr-form input:focus,
.sbr-form textarea:focus {
    outline: none;
    border-color: #6acc5b;
    box-shadow: 0 0 0 3px rgba(106, 204, 91, 0.1);
}

.sbr-form input::placeholder,
.sbr-form textarea::placeholder {
    color: #999;
    font-family: 'Gabarito', sans-serif;
}

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

/* ========================================
   3. FORM VALIDATION STYLES
   ======================================== */

.sbr-form input.sbr-error,
.sbr-form textarea.sbr-error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.sbr-error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: 'Gabarito', sans-serif;
}

/* ========================================
   4. FORM MESSAGES
   ======================================== */

.sbr-form-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-family: 'Gabarito', sans-serif;
    font-weight: 500;
}

.sbr-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sbr-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   5. FORM LOADING OVERLAY
   ======================================== */

.sbr-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.sbr-form-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sbr-form-overlay-content {
    text-align: center;
    color: #333;
}

.sbr-form-overlay-content p {
    font-size: 1.1rem;
    margin-top: 1rem;
    font-family: 'Gabarito', sans-serif;
    font-weight: 500;
}

/* ========================================
   6. SPINNER ANIMATION
   ======================================== */

.sbr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6acc5b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   7. BUTTON STYLES
   ======================================== */

.sbr-btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Gabarito', sans-serif;
}

.sbr-btn-primary {
    background: #6acc5b;
    color: white;
    box-shadow: 0 4px 15px rgba(106, 204, 91, 0.3);
    width: 100%;
}

.sbr-btn-primary:hover {
    background: #52a842;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 204, 91, 0.4);
}

.sbr-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   8. CONTACT BOXES SECTION
   ======================================== */

.sbr-contact-boxes {
    background: #ffffff;
    padding: 6rem 2rem;
}

.sbr-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sbr-contact-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.sbr-contact-box {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sbr-contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sbr-contact-icon {
    background: #6acc5b;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    transition: background 0.3s ease;
}

.sbr-contact-box:hover .sbr-contact-icon {
    background: #52a842;
}

.sbr-contact-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Gabarito', sans-serif;
}

.sbr-contact-box p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Gabarito', sans-serif;
}

.sbr-contact-box a {
    color: #6acc5b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sbr-contact-box a:hover {
    color: #52a842;
    text-decoration: underline;
}

/* ========================================
   9. RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .sbr-contact-form {
        min-height: 90vh;
        padding: 9rem 0 5rem;
    }
    
    .sbr-contact-form-content {
        max-width: 800px;
        padding: 0 1.5rem;
    }
    
    .sbr-contact-form-box {
        padding: 3rem 2.5rem;
    }
    
    .sbr-contact-form h1 {
        font-size: 2.5rem;
    }
    
    .sbr-contact-form p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .sbr-form input,
    .sbr-form textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .sbr-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .sbr-contact-boxes {
        padding: 5rem 1.5rem;
    }
    
    .sbr-contact-boxes-grid {
        gap: 2.5rem;
    }
    
    .sbr-contact-box {
        padding: 2.5rem 1.5rem;
    }
    
    .sbr-contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .sbr-contact-box h3 {
        font-size: 1.375rem;
    }
    
    .sbr-contact-box p {
        font-size: 1rem;
    }
}

/* ========================================
   10. RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .sbr-contact-form {
        min-height: 100vh;
        padding: 8rem 0 4rem;
    }
    
    .sbr-contact-form-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .sbr-contact-form-box {
        padding: 2.5rem 1.5rem;
        border-radius: 10px;
    }
    
    .sbr-contact-form h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .sbr-contact-form p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .sbr-form-row {
        margin-bottom: 1.25rem;
    }
    
    .sbr-form input,
    .sbr-form textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .sbr-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .sbr-form-overlay {
        border-radius: 10px;
    }
    
    .sbr-contact-boxes {
        padding: 4rem 1rem;
    }
    
    .sbr-contact-boxes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .sbr-contact-box {
        padding: 2rem 1.5rem;
    }
    
    .sbr-contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .sbr-contact-box h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .sbr-contact-box p {
        font-size: 0.95rem;
    }
}

/* ========================================
   11. RESPONSIVE DESIGN - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .sbr-contact-form {
        padding: 7rem 0 3rem;
    }
    
    .sbr-contact-form-content {
        padding: 0 0.75rem;
    }
    
    .sbr-contact-form-box {
        padding: 2rem 1.25rem;
        border-radius: 8px;
    }
    
    .sbr-contact-form h1 {
        font-size: 1.75rem;
    }
    
    .sbr-contact-form p {
        font-size: 0.95rem;
    }
    
    .sbr-form input,
    .sbr-form textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .sbr-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .sbr-form-overlay {
        border-radius: 8px;
    }
}