/* Enhanced Contact Page Styling */

/* Contact Section Enhancements */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, #d0dfe7 0%, #e8f4f8 100%);
    padding: 80px 0;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.contact-section .sec-title {
    margin-bottom: 60px;
}

.contact-section .sec-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section .sec-title .sub-title {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

.contact-section .sec-title p {
    font-size: 18px;
    line-height: 1.6;
    color: #5d6c72;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Blocks Enhancement */
.contact-block-one {
    transition: all 0.4s ease;
    height: 100%;
}

.contact-block-one .inner-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.contact-block-one .inner-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color) 0%, #3498db 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-block-one:hover .inner-box::before {
    transform: scaleX(1);
}

.contact-block-one:hover .inner-box {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-block-one .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #3498db 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.4s ease;
}

.contact-block-one .icon-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #3498db 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
    transition: all 0.4s ease;
}

.contact-block-one:hover .icon-box::before {
    transform: scale(1.2);
    opacity: 0.5;
}

.contact-block-one .icon-box i {
    font-size: 32px;
    color: #fff;
    transition: all 0.4s ease;
}

.contact-block-one:hover .icon-box i {
    transform: scale(1.1);
}

.contact-block-one h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.contact-block-one:hover h3 {
    color: var(--theme-color);
}

.contact-block-one p {
    font-size: 16px;
    line-height: 1.6;
    color: #5d6c72;
    margin: 0;
}

.contact-block-one p a {
    color: var(--theme-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-block-one p a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Contact Form Section Enhancement */
.contact-form-section {
    background: #fff;
    padding: 80px 0;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e6ea 50%, transparent 100%);
}

.contact-form-section .content-box {
    padding-right: 50px;
}

.contact-form-section .sec-title {
    margin-bottom: 40px;
}

.contact-form-section .sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-form-section .sec-title .sub-title {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
}

.contact-form-section .sec-title p {
    font-size: 16px;
    line-height: 1.6;
    color: #5d6c72;
}

.contact-form-section .text-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.contact-form-section .text-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-form-section .text-box .list-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-form-section .text-box .list-item li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    color: #5d6c72;
    position: relative;
    padding-left: 25px;
}

.contact-form-section .text-box .list-item li:last-child {
    border-bottom: none;
}

.contact-form-section .text-box .list-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--theme-color);
    font-weight: bold;
    font-size: 14px;
}

/* Form Enhancement */
.contact-form-section .form-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-section .form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-color) 0%, #3498db 100%);
}

.contact-form-section .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form-section .form-group input[type='text'],
.contact-form-section .form-group input[type='email'],
.contact-form-section .form-group textarea,
.contact-form-section .form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    color: #2c3e50;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form-section .form-group input[type='text']:focus,
.contact-form-section .form-group input[type='email']:focus,
.contact-form-section .form-group textarea:focus,
.contact-form-section .form-group select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

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

.contact-form-section .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

.contact-form-section .message-btn {
    margin-top: 30px;
}

.contact-form-section .message-btn .theme-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #3498db 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-section .message-btn .theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form-section .message-btn .theme-btn:hover::before {
    left: 100%;
}

.contact-form-section .message-btn .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* Map Section Enhancement */
.map-section {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.map-section .map-inner {
    display: flex;
    align-items: stretch;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-section .map-content {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 50px 40px;
    color: #fff;
    position: relative;
}

.map-section .map-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.map-section .map-content .content-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.map-section .map-content .content-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.map-section .contact-info {
    margin-top: 30px;
}

.map-section .contact-info .single-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.map-section .contact-info .single-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.map-section .contact-info .single-item .icon-box {
    width: 50px;
    height: 50px;
    background: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.map-section .contact-info .single-item .icon-box i {
    font-size: 20px;
    color: #fff;
}

.map-section .contact-info .single-item .text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.map-section .contact-info .single-item .text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.map-section .contact-info .single-item .text p a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-section .contact-info .single-item .text p a:hover {
    color: var(--theme-color);
}

.map-section .map-outer {
    flex: 1;
    position: relative;
}

.map-section .map-canvas {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.map-section .map-canvas iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 20px 20px 0;
}

/* Responsive Enhancements */
@media only screen and (max-width: 1199px) {
    .contact-section .sec-title h2 {
        font-size: 36px;
    }
    
    .contact-form-section .content-box {
        padding-right: 30px;
    }
    
    .map-section .map-inner {
        flex-direction: column;
    }
    
    .map-section .map-content {
        flex: none;
        padding: 40px 30px;
    }
    
    .map-section .map-canvas {
        min-height: 400px;
    }
}

@media only screen and (max-width: 991px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-section .sec-title h2 {
        font-size: 32px;
    }
    
    .contact-block-one .inner-box {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-section .content-box {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-form-section .form-box {
        padding: 30px 25px;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-section .map-content {
        padding: 30px 25px;
    }
    
    .map-section .contact-info .single-item {
        padding: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .contact-section .sec-title h2 {
        font-size: 28px;
    }
    
    .contact-section .sec-title p {
        font-size: 16px;
    }
    
    .contact-block-one .icon-box {
        width: 60px;
        height: 60px;
    }
    
    .contact-block-one .icon-box i {
        font-size: 24px;
    }
    
    .contact-block-one h3 {
        font-size: 20px;
    }
    
    .contact-form-section .sec-title h2 {
        font-size: 28px;
    }
    
    .contact-form-section .form-box {
        padding: 25px 20px;
    }
    
    .contact-form-section .form-group input[type='text'],
    .contact-form-section .form-group input[type='email'],
    .contact-form-section .form-group textarea,
    .contact-form-section .form-group select {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .map-section .map-content .content-box h3 {
        font-size: 24px;
    }
    
    .map-section .contact-info .single-item {
        flex-direction: column;
        text-align: center;
    }
    
    .map-section .contact-info .single-item .icon-box {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 575px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section .sec-title h2 {
        font-size: 24px;
    }
    
    .contact-block-one .inner-box {
        padding: 25px 15px;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-form-section .form-box {
        padding: 20px 15px;
    }
    
    .map-section {
        padding: 40px 0;
    }
    
    .map-section .map-content {
        padding: 25px 20px;
    }
    
    .map-section .map-canvas {
        min-height: 300px;
    }
}

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

.contact-block-one {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-block-one:nth-child(1) { animation-delay: 0.1s; }
.contact-block-one:nth-child(2) { animation-delay: 0.2s; }
.contact-block-one:nth-child(3) { animation-delay: 0.3s; }

/* Loading States */
.contact-form-section .form-box.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form-section .message-btn .theme-btn.loading {
    position: relative;
    color: transparent;
}

.contact-form-section .message-btn .theme-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.contact-form-section .form-group.success input,
.contact-form-section .form-group.success textarea,
.contact-form-section .form-group.success select {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.contact-form-section .form-group.error input,
.contact-form-section .form-group.error textarea,
.contact-form-section .form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.contact-form-section .form-group .error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

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

/* Accessibility Improvements */
.contact-form-section .form-group input:focus,
.contact-form-section .form-group textarea:focus,
.contact-form-section .form-group select:focus {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

.contact-form-section .message-btn .theme-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .contact-block-one .inner-box {
        border: 2px solid #000;
    }
    
    .contact-form-section .form-group input,
    .contact-form-section .form-group textarea,
    .contact-form-section .form-group select {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-block-one,
    .contact-block-one .inner-box,
    .contact-block-one .icon-box,
    .contact-block-one .icon-box i,
    .contact-form-section .message-btn .theme-btn {
        transition: none;
    }
    
    .contact-block-one:hover .inner-box {
        transform: none;
    }
    
    .contact-block-one:hover .icon-box i {
        transform: none;
    }
}

/* Screen Reader Only Class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for better accessibility */
.contact-form-section .form-group input:focus,
.contact-form-section .form-group textarea:focus,
.contact-form-section .form-group select:focus {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

.contact-block-one .inner-box:focus-within {
    outline: 2px solid var(--theme-color);
    outline-offset: 2px;
}

/* Success message styling */
.success-message {
    margin-bottom: 20px;
}

.success-message .alert {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.success-message .alert i {
    font-size: 18px;
    color: #28a745;
}

/* Character counter styling */
.char-counter {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
    font-style: italic;
}

/* Form group focus state */
.contact-form-section .form-group.focused {
    position: relative;
}

.contact-form-section .form-group.focused::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-color) 0%, #3498db 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-form-section .form-group.focused::after {
    transform: scaleX(1);
}

/* Enhanced button states */
.contact-form-section .message-btn .theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form-section .message-btn .theme-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Loading animation for form submission */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.contact-form-section .form-box.loading {
    animation: pulse 2s infinite;
}

/* Enhanced map section accessibility */
.map-section .map-content:focus-within {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Contact info hover effects for keyboard navigation */
.contact-info .single-item:focus-within {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    .contact-form-section .form-group input,
    .contact-form-section .form-group textarea,
    .contact-form-section .form-group select {
        border-width: 2px;
        border-color: #000;
    }
    
    .contact-form-section .message-btn .theme-btn {
        border: 2px solid #000;
    }
    
    .success-message .alert {
        border-width: 2px;
        border-color: #000;
    }
} 