/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    max-height: 80px;
    height: auto;
    width: auto;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 3px;
    margin: 0;
}

.orange-line {
    width: 100%;
    height: 2px;
    background-color: #F8A55F;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-section,
.phone-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #F8A55F;
}

input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
}

small {
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Job Description Section */
.job-description {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.job-description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #F8A55F;
    padding-bottom: 5px;
}

.job-description h4 {
    color: #555;
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

.job-description p {
    margin-bottom: 12px;
    color: #666;
    text-align: justify;
}

.job-description ul, .job-description ol {
    margin: 10px 0 15px 20px;
    color: #666;
}

.job-description li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.job-description strong {
    color: #333;
}

/* Submit Button */
.submit-btn {
    background-color: #F8A55F;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #e6944f;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

/* Mobile-First Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 15px;
        box-shadow: none;
    }
    
    .name-section,
    .phone-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .logo-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .logo {
        max-width: 150px;
        max-height: 60px;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="file"],
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 12px; /* Larger touch targets */
        min-height: 48px; /* Accessibility guideline for touch targets */
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 18px;
        width: 100%;
        min-height: 50px; /* Better touch target */
    }
    
    .job-description {
        max-height: 300px;
        font-size: 14px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .form-container h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .logo-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .field-group {
        margin-bottom: 5px;
    }
    
    label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="file"],
    select {
        padding: 15px 12px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 18px 25px;
        width: 100%;
        min-height: 54px;
        margin-top: 25px;
    }
    
    .job-description {
        padding: 15px;
        max-height: 250px;
        font-size: 13px;
    }
    
    .job-description h3 {
        font-size: 1.1rem;
    }
    
    .job-description h4 {
        font-size: 0.95rem;
    }
}

/* Loading and utility styles */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #F8A55F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Mobile-Friendly Styles for Homepage */
@media (max-width: 768px) {
    /* Homepage hero section */
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-section h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    
    /* Navigation buttons */
    .navigation {
        padding: 15px;
        margin: 15px 0;
    }
    
    .nav-button {
        display: block;
        width: 90%;
        max-width: 300px;
        margin: 10px auto;
        padding: 18px 25px;
        font-size: 16px;
        text-align: center;
        min-height: 54px;
        line-height: 1.2;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Contact info section */
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-info h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .contact-info p {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    /* Homepage hero section - mobile */
    .hero-section {
        padding: 30px 12px;
    }
    
    .hero-section h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    /* Navigation - mobile */
    .navigation {
        padding: 12px;
    }
    
    .nav-button {
        width: 95%;
        margin: 8px auto;
        padding: 16px 20px;
        font-size: 15px;
    }
    
    /* Content container */
    .container {
        padding: 10px;
    }
    
    /* About section */
    .about-section h2,
    .services-section h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .about-section h3,
    .services-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .about-section p {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }
    
    /* Service cards - mobile */
    .service-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .service-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}
