/* Contractors page specific styles */

.contractors-main {
    padding-top: 100px;
}

/* Contractors Hero Section */
.contractors-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contractors-hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contractors-hero .hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Why Partner Section */
.why-partner {
    padding: 6rem 0;
    background: white;
}

.why-partner h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Requirements Section */
.requirements {
    padding: 6rem 0;
    background: #f8f9fa;
}

.requirements h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.requirements-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.requirements-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.requirements-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.requirements-text li:before {
    content: "✓";
    color: #c53030;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.requirements-text strong {
    color: #c53030;
}

.requirements-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.contractor-form-section {
    padding: 6rem 0;
    background: white;
}

.contractor-form-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.form-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contractor-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 0.8rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Checkbox Label */
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Form Submit */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #c53030 0%, #a02626 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 48, 48, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-message.show {
    display: flex;
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    margin: 0 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-content h3 {
    color: #38a169;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-success {
    background: #c53030;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-success:hover {
    background: #a02626;
}

/* Active navigation link */
.nav-menu a.active {
    color: #c53030;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contractors-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .contractors-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .requirements-image {
        order: -1;
    }
    
    .contractor-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .success-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .contractors-main {
        padding-top: 80px;
    }
    
    .contractors-hero {
        padding: 2rem 0;
    }
    
    .contractors-hero .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .why-partner {
        padding: 3rem 0;
    }
    
    .requirements {
        padding: 3rem 0;
    }
    
    .contractor-form-section {
        padding: 3rem 0;
    }
    
    .contractor-form-section h2 {
        font-size: 2rem;
    }
    
    .contractor-form {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .radio-group {
        gap: 0.5rem;
    }
}

/* Form validation states */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e53e3e;
    background: #fef5f5;
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #38a169;
    background: #f0fff4;
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading states */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.4; }
    100% { opacity: 0.7; }
}
