* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    background: white;
}

.left-side {
    width: 35%;
    background: url('/images/leftimg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    color: white;
}

.logo {
    width: 300px;
    margin: 7px auto 40px auto;
    display: block;
}

.left-content {
    margin-top: auto;
    margin-bottom: 100px;
}

.left-content h1 {
    font-size: 64px;
    font-weight: 300;
    margin-bottom: 60px;
}

.left-content p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 400px;
}

.right-side {
    width: 65%;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background-color: #f5f5f5;
    border-radius: 30px;
    padding: 40px 20px;
    width: 95%;
    max-width: 800px;
    position: relative;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    color: #D93025;
    margin-bottom: 40px;
}

.form-header p {
    font-size: 18px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #D93025;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #D93025;
}

input.error, textarea.error {
    border-color: #ff4444;
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #D93025;
    color: white;
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    font-size: 24px;
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
    text-transform: capitalize;
    transition: all 0.3s ease;
    position: relative;
    min-width: 160px;
    overflow: hidden;
}

.submit-btn::before {
    content: "";
    background: #fff;
    height: 200px;
    left: -86px;
    opacity: 0.2;
    position: absolute;
    top: -64px;
    transform: rotate(35deg);
    transition: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    pointer-events: none;
    z-index: 1;
}

.submit-btn:hover {
    background-color: rgba(217, 48, 37, 0.1);
    color: #D93025;
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    left: 130%;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled::before {
    display: none;
}

.btn-spinner {
    position: relative;
    z-index: 2;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

/* Success Message Styles */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease-in;
}

.success-content {
    text-align: center;
    color: #D93025;
    padding: 40px;
}

.success-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #28a745;
}

.success-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.success-btn {
    background-color: #D93025;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.success-btn:hover {
    background-color: #b8241c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .left-side, .right-side {
        width: 100%;
    }
    
    .left-side {
        min-height: 40vh;
    }
    
    .left-content h1 {
        font-size: 48px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .logo {
        width: 250px;
    }
    
    .form-container {
        margin: 20px;
        padding: 30px 15px;
    }
}

/* Large desktop screens (adjust for your screen size) */
@media (min-width: 1200px) and (min-height: 700px) {
    body {
        overflow: hidden; /* Lock scrolling */
    }
    
    .form-container {
        transform: translateY(-60px); /* Move up by 60px */
    }
}

/* Extra large screens */
@media (min-width: 1440px) and (min-height: 800px) {
    .form-container {
        transform: translateY(-80px); /* Move up even more */
    }
}

/* Very large screens */
@media (min-width: 1920px) and (min-height: 1080px) {
    .form-container {
        transform: translateY(-120px); /* Move up most */
    }
}
