/* Contact Page Styling */

.contact-container {
    max-width: var(--max-width-standard);
    margin: 4rem auto 10rem;
    padding: 0 var(--content-padding);
}

.contact-container h1 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: stretch;
}

/* Contact information styling */
.contact-info {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.contact-info:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-info-top {
    flex-grow: 1;
}

.contact-details {
    margin-top: auto;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.contact-details i {
    color: var(--color-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Additional visual element for desktop contact info */
.contact-decoration {
    margin: 1.5rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-decoration i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0 0.5rem;
    opacity: 0.8;
}

.contact-decoration .separator {
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contact form styling */
.contact-form {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Remove the green gradient line at the top of the form */
.contact-form::before {
    /* Delete the entire block or modify as below */
    content: none; /* This will effectively remove the element */
}

/* Or alternatively, if you want to keep some subtle effect but remove the green color */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 178, 0), rgba(0, 255, 178, 0.3), rgba(0, 255, 178, 0));
    z-index: 1;
}

.contact-form form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.contact-form:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0; /* Remove any padding */
}

.form-fields {
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    box-sizing: border-box;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    position: relative;
    -webkit-text-fill-color: var(--color-text-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color-scheme: dark;
}

/* Consistent placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 255, 178, 0.9);
    opacity: 1;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Add glow effect to focused and typing inputs */
.form-group input:focus,
.form-group textarea:focus,
.form-group input.typing,
.form-group textarea.typing {
    border-color: rgba(0, 255, 178, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 178, 0.3);
    outline: none;
    background-color: rgba(0, 255, 178, 0.03);
}

/* Add label animation */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input.typing ~ label,
.form-group textarea.typing ~ label {
    color: rgba(0, 255, 178, 0.9);
}

/* Add scanline effect for cyber theme */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.form-group input.typing::after,
.form-group textarea.typing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 178, 0.4), transparent);
    animation: scanline 2s linear infinite;
    z-index: 2;
    pointer-events: none;
}

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

/* Fix for asymmetrical spacing */
.contact-form form, 
.form-fields, 
.form-group, 
.submit-btn {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Override padding for form elements to ensure consistency */
.form-group input, 
.form-group textarea {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Submit button with neutral styling initially */
.submit-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: auto;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Success state for the button */
.submit-btn.success {
    background: rgba(0, 255, 178, 0.15);
    color: rgba(0, 255, 178, 0.9);
    border: 1px solid rgba(0, 255, 178, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 255, 178, 0.2);
    cursor: default;
}

/* Failure state for the button */
.submit-btn.failure {
    background: rgba(255, 51, 102, 0.15);
    color: rgba(255, 51, 102, 0.9);
    border: 1px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 51, 102, 0.2);
    cursor: default;
}

/* Remove hover effects for success/failure states */
.submit-btn.success:hover,
.submit-btn.failure:hover {
    transform: none;
    background: rgba(0, 255, 178, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 255, 178, 0.2);
}

.submit-btn.failure:hover {
    background: rgba(255, 51, 102, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 51, 102, 0.2);
}

/* Responsive design */
/* Large desktop */
@media (min-width: 1200px) and (max-width: 1799px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
    
    .contact-info, .contact-form {
        padding: 2.5rem;
    }
}

/* Medium desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 2.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 2.5rem;
    }
    
    .contact-container h1 {
        font-size: 2.7rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
    
    .contact-container h1 {
        font-size: 2.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
    }
}

/* Mobile landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
    
    .contact-container h1 {
        font-size: 2.2rem;
    }
    
    .contact-decoration {
        margin: 1rem 0;
    }
    
    .contact-decoration i {
        font-size: 2rem;
    }
}

/* Mobile portrait */
@media (max-width: 575px) {
    .contact-container h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    .contact-decoration {
        margin: 1rem 0;
    }
    
    .contact-decoration i {
        font-size: 1.8rem;
    }
    
    .contact-decoration .separator {
        width: 30px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group label {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .contact-info-top p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
    }
    
    .contact-decoration {
        margin: 0.8rem 0;
    }
    
    .contact-info h3::after {
        width: 50px;
    }
    
    .form-success {
        padding: 1.5rem;
    }
    
    .form-success i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .form-success h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .form-success p {
        font-size: 0.9rem;
    }
    
    .contact-details i {
        min-width: 30px;
        min-height: 24px;
    }
}

/* Additional small screen optimization */
@media (max-width: 360px) {
    .contact-info, .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
}

/* Ultrawide screens */
@media (min-width: 1800px) {
    .contact-container {
        max-width: 80%;
        margin: 6rem auto 10rem;
    }
    
    .contact-grid {
        gap: 6rem;
    }
    
    .contact-container h1 {
        font-size: 4rem;
    }
    
    .contact-info, .contact-form {
        padding: 4rem;
    }
    
    .contact-info h3 {
        font-size: 2.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Custom styles to ensure balanced padding in the contact form */
@media (min-width: 768px) {
    .contact-form {
        padding: 3rem;
    }
    
    /* Reset any potential padding or margin that might cause asymmetry */
    .form-fields,
    .form-group,
    .submit-btn {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile portrait - adjusted padding for smaller screens */
@media (max-width: 575px) {
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    /* Also ensure no padding inconsistency on mobile */
    .form-fields,
    .form-group,
    .submit-btn {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Tablet - ensure consistent padding */
@media (min-width: 576px) and (max-width: 767px) {
    .contact-info, .contact-form {
        padding: 2rem;
    }
    
    /* Also ensure no padding inconsistency on tablet */
    .form-fields,
    .form-group,
    .submit-btn {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Remove the blinking cursor animation */
@keyframes blink {
    /* Delete this entire keyframes block */
}

/* Remove the cursor styling from typing elements */
.form-group input.typing, 
.form-group textarea.typing {
    /* Remove the border-right and animation properties that create the cursor */
    border-right: none;
    animation: none;
}

/* Modify the typing class to keep other styling but remove cursor */
.form-group input:focus,
.form-group textarea:focus,
.form-group input.typing,
.form-group textarea.typing {
    border-color: rgba(0, 255, 178, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 178, 0.3);
    outline: none;
    background-color: rgba(0, 255, 178, 0.03);
    /* No blinking cursor styling here */
}

/* Better overall layout on mobile */
@media (max-width: 767px) {
    .contact-container {
        margin: 3rem auto 6rem; /* Less vertical margin on mobile */
    }
    
    .contact-grid {
        gap: 1.5rem; /* Less space between info and form */
    }
}

/* Fix potential overflow issues */
@media (max-width: 575px) {
    .contact-container {
        padding: 0 1rem; /* Ensure consistent side padding */
    }
}

/* Override browser autofill styling which often turns inputs white/black */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--color-background-dark) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--color-primary);
    background-color: transparent !important;
}

/* Ensure all inputs have consistent styling when filled */
.form-group input,
.form-group textarea,
.form-group input:not(:-webkit-autofill),
.form-group textarea:not(:-webkit-autofill) {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

/* Ensure consistent styling when user is typing */
.form-group input:focus,
.form-group textarea:focus,
.form-group input.typing,
.form-group textarea.typing {
    border-color: rgba(0, 255, 178, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 178, 0.3);
    outline: none;
    background-color: rgba(0, 255, 178, 0.03) !important;
    color: var(--color-text-primary) !important;
}

/* Ensure even filled inputs maintain proper styling */
.form-group input[value]:not([value=""]),
.form-group textarea:not(:empty) {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

/* Enhance input text visibility */
.form-group input:focus,
.form-group textarea:focus {
    color: var(--color-text-primary);
    background-color: rgba(0, 255, 178, 0.03);
} 