/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 950px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(1, 97, 142, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjusted ratio for better spacing */
    animation: fadeIn 0.6s ease-in;
}

/* --- NEW BACK BUTTON STYLES --- */
.back-button {
    /* Fixed positioning to keep it in the viewport */
    position: fixed; 
    top: 30px; /* Distance from the top */
    left: 30px; /* Distance from the left */
    z-index: 1000; /* Ensure it is on top of other content */
    
    /* Styling */
    padding: 10px 15px;
    background-color: #074c7a; /* Matches the info-section background */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex; /* For aligning the icon and text */
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background-color: #0e5aa2; /* Slightly darker on hover */
    transform: scale(1.05);
}

/* Hide the back button when the layout stacks (on small screens) if desired, 
   or keep it visible based on your design preference. 
@media (max-width: 968px) {
    .back-button {
        display: none; 
    }
}
*/
/* --- END NEW BACK BUTTON STYLES --- */

/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Left Info Section */
.info-section {
    background: linear-gradient(170deg, #074c7a 0%, #0e5aa2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}
*/

/* Decorative Circles - Restored & Cleaned 
.info-section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    pointer-events: none;
}*/

.info-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    pointer-events: none;
}

.info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.info-section p {
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Contact Items */
.contact-info {
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

/* Fixed Icon Styling */
.icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 1rem;
    padding: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: #0e5aa2;
    transform: translateY(-5px);
}

#single-line-text {
  /* This is the key property */
  white-space: nowrap; 
}


/* Right Form Section */
.form-section {
    padding: 60px 50px;
    background-color: white;
}

.form-section h2 {
    color: #0e5aa2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0e5aa2;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(14, 90, 162, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #0e5aa2 0%, #1a72c3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 90, 162, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 90, 162, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr; /* Stack columns */
        max-width: 600px;
    }

    .info-section {
        padding: 40px 30px;
        text-align: center;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
    }

    .form-section {
        padding: 40px 30px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .info-section h1 {
        font-size: 1.8rem;
    }

    .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 15px;
    }

    .form-section h2 {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        font-size: 1rem;
    }
}