/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Image Section */
.image-section {
    width: 100%;
    overflow: visible;
}

.full-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    flex: 1;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-container h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-intro {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #7f8c8d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.distributor-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.form-group.full-width {
    flex-basis: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(224, 224, 224, 0.8);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.9) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.8);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 247, 250, 0.95) 100%);
}

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

/* Error Messages */
.error-message {
    color: rgba(231, 76, 60, 0.9);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
    font-weight: 500;
}

.form-group.error input,
.form-group.error textarea {
    border-color: rgba(231, 76, 60, 0.8);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group.error .error-message {
    display: block;
}

/* Submit Button */
.submit-btn {
    display: block;
    width: auto;
    margin: 2rem auto 0;
    padding: 1.1rem 3.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(41, 128, 185, 0.95) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.35), 0 3px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.45), 0 5px 15px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(52, 152, 219, 1) 0%, rgba(41, 128, 185, 1) 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4), 0 3px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, rgba(189, 195, 199, 0.8) 0%, rgba(171, 183, 189, 0.8) 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-section {
        padding: 2rem 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .form-container h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .form-intro {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
    
    footer p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem 0.8rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-container h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .form-intro {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    footer {
        padding: 1rem 0.8rem;
    }
    
    footer p {
        font-size: 0.75rem;
    }
}

/* Image Optimization */
.full-image {
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Performance Optimizations */
html {
    scroll-behavior: smooth;
}

body {
    font-display: swap;
}

/* Remove browser default tooltips */
input, textarea, select {
    /* Prevent browser default tooltips on hover */
    pointer-events: auto;
}

/* Disable validation bubbles */
input::-webkit-validation-bubble-message,
textarea::-webkit-validation-bubble-message {
    display: none !important;
}

/* Remove title attribute tooltips if any */
[title] {
    pointer-events: none;
}

input, textarea, button, select {
    pointer-events: auto;
}

/* Animation for form submission */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95) 0%, rgba(200, 230, 206, 0.9) 100%);
    color: rgba(21, 87, 36, 0.95);
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(21, 87, 36, 0.15);
    border: 1px solid rgba(212, 237, 218, 0.8);
}