/* Contact Page CSS - Complete Version */

/* Main contact page layout and containers */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 18px;
    color: #666;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-panel {
    flex: 2;
    min-width: 350px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contact info cards */
.contact-info-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 28px;
    color: #4285f4;
    margin-bottom: 10px;
}

.contact-info-card h3 {
    margin: 10px 0;
    color: #333;
}

/* Fix for long email addresses */
.contact-info-card p {
    margin: 5px 0;
    color: #666;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-info-card a {
    color: #4285f4;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.contact-info-card a:hover {
    color: #2b68c9;
    text-decoration: underline;
}

.contact-small {
    font-size: 12px;
    color: #888;
}

/* Ensure all email links throughout the site wrap properly */
a[href^="mailto:"] {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* Contact info text section */
.contact-info-text {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info-text h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-info-text p {
    color: #666;
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-help-list li {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-help-list li i {
    color: #28a745;
}

/* Contact form styling */
.contact-form-intro {
    margin-bottom: 25px;
}

.contact-form-intro h2 {
    color: #333;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-intro p {
    color: #666;
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.privacy-note {
    font-size: 13px;
    color: #777;
    background-color: #f0f4f8;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-form-field {
    margin-bottom: 15px;
}

.contact-form-field.full-width {
    grid-column: 1 / -1;
}

.contact-form-field label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
}

.contactTextBox {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

.contactTextBox:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.contactTextBox.error {
    border-color: #dc3545;
}

.error-text {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.required {
    color: #dc3545;
}

.optional {
    color: #6c757d;
    font-size: 13px;
}

.contact-form-submit {
    margin-top: 15px;
}

.contactSubmit {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contactSubmit:hover {
    background-color: #2b68c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contactSubmit:active {
    transform: translateY(0);
}

/* Form error and success messages */
.contact-error-message {
    background-color: #fff5f5;
    color: #dc3545;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.contact-success {
    background-color: #f6fef9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #d1e7dd;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.contact-success h2 {
    color: #333;
    margin-bottom: 15px;
}

.contact-success p {
    color: #666;
    margin-bottom: 25px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-success-details {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-success-details h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-next-steps {
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.contact-next-steps h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-next-steps ul {
    padding-left: 0;
    list-style: none;
}

.contact-next-steps li {
    margin-bottom: 10px;
}

.contact-next-steps a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.contact-next-steps a:hover {
    color: #2b68c9;
    text-decoration: underline;
}

/* FAQ section */
.faq-section {
    margin: 50px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: #f0f4f8;
}

.faq-question i {
    color: #4285f4;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-answer p {
    margin: 20px 0;
    color: #555;
}



/* Back to top button */
.backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4285f4;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.backToTop:hover {
    background-color: #2b68c9;
    transform: translateY(-5px);
}

/* Make sure all content in panels has proper wrapping */
.contact-container p,
.contact-container a,
.contact-form-intro p,
.contact-success p {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info-panel {
        width: 100%;
    }
    
    .contact-form-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-header {
        padding: 20px 15px;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

	.rightColWhiteBGStay {

		padding: 0;
		border: none;

	}

    .contact-form-panel,
    .contact-info-card,
    .contact-info-text,
    .contact-success {
        padding: 20px 15px;
    }
    
    .contact-header h1 {
        font-size: 24px;
    }
    
    .contactSubmit {
        width: 100%;
        justify-content: center;
    }
}