* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    flex: 1;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    animation: floatShape 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.2;
    }
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #31b2cc, #31b2cc);
    border-radius: 2px;
    animation: lineExpand 1.5s ease-out;
}

@keyframes lineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

.contact-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(49, 178, 204, 0.05), transparent);
    transition: left 0.5s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(49, 178, 204, 0.2);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #31b2cc, #31b2cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:nth-child(2) .icon-circle {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.info-card:nth-child(3) .icon-circle {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.info-card:nth-child(4) .icon-circle {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.info-card:hover .icon-circle::before {
    transform: translateX(100%) rotate(45deg);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: rgba(49, 178, 204, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

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

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 1;
    transition: all 0.3s ease;
}

.comm i {
    top: 20%;
}

.input-with-icon textarea + i {
    top: 20px;
    transform: none;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    color: #333333;
}

.input-with-icon textarea {
    resize: vertical;
    min-height: 120px;
}

.input-with-icon label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 0 5px;
}

.input-with-icon textarea + label {
    top: 20px;
    transform: none;
}

.email-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-with-icon input:focus + label + .email-hint,
.input-with-icon input:valid + label + .email-hint {
    opacity: 0;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    border-color: #31b2cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 178, 204, 0.1);
}

.input-with-icon input:focus + label,
.input-with-icon textarea:focus + label,
.input-with-icon input:valid + label,
.input-with-icon textarea:valid + label {
    top: 0;
    font-size: 0.8rem;
    color: #31b2cc;
    font-weight: 500;
}

.input-with-icon input:focus ~ i,
.input-with-icon textarea:focus ~ i {
    color: #31b2cc;
    transform: translateY(-50%) scale(1.1);
}

.input-with-icon textarea:focus ~ i {
    transform: scale(1.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #31b2cc, #31b2cc);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 178, 204, 0.3);
}

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

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover::before {
    left: -100%;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    animation: successPop 0.5s ease forwards;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 15px;
    animation: iconBounce 1s ease infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.success-message h3 {
    color: #2ecc71;
    margin-bottom: 10px;
}

.map-section {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease forwards;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #31b2cc, #31b2cc);
    border-radius: 2px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 400px;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    max-width: 280px;
    animation: slideInRight 0.5s ease forwards;
}

.map-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-info h3 i {
    color: #31b2cc;
}

.map-info p {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.directions-btn {
    background: linear-gradient(135deg, #31b2cc, #31b2cc);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(49, 178, 204, 0.3);
}

.leaflet-container {
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}

.custom-marker {
    background: linear-gradient(135deg, #31b2cc, #31b2cc);
    border: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 178, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(49, 178, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(49, 178, 204, 0);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #31b2cc, #31b2cc);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.email-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.email-verification-modal.active {
    display: flex;
}

.email-verification-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease;
}

.verification-header {
    margin-bottom: 30px;
}

.verification-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.verification-icon .fa-envelope {
    font-size: 3.5rem;
    color: #31b2cc;
}

.verification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

.verification-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.verification-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.verification-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #31b2cc, #31b2cc);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.step {
    transition: color 0.3s ease;
}

.step.active {
    color: #31b2cc;
    font-weight: 500;
}

.verification-details {
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
}

.detail-item .valid {
    color: #2ecc71;
}

.detail-item .checking {
    color: #31b2cc;
}

.detail-item .waiting {
    color: #95a5a6;
}

.detail-item.valid {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.detail-item.checking {
    border-left-color: #31b2cc;
    background: rgba(49, 178, 204, 0.05);
}

.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

.error-modal.active {
    display: block;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.error-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease;
}

.error-header {
    text-align: center;
    margin-bottom: 20px;
}

.error-header i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
}

.error-body {
    margin-bottom: 25px;
}

.error-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #5d6d7e;
}

.error-suggestions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.error-suggestions ul {
    margin: 10px 0 0 20px;
    color: #5d6d7e;
}

.error-suggestions li {
    margin-bottom: 5px;
}

.error-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.error-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.error-btn.primary {
    background: #31b2cc;
    color: white;
}

.error-btn.primary:hover {
    background: #31b2cc;
    transform: translateY(-1px);
}

.error-btn.secondary {
    background: #95a5a6;
    color: white;
}

.error-btn.secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.allowed-domains-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.domains-separator {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.domains-separator span {
    background: white;
    padding: 0 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.domains-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: -1;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(46, 204, 113, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.domain-item:hover {
    background: rgba(46, 204, 113, 0.1);
    transform: translateY(-1px);
}

.domain-item i {
    color: #2ecc71;
    font-size: 0.8rem;
}

.domain-item span {
    color: #2c3e50;
    font-weight: 500;
}

.domains-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.domains-note i {
    color: #31b2cc;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-card, .contact-form {
    animation: fadeInUp 0.6s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
.contact-form { animation-delay: 0.5s; }

/* Blur effect when modal is active */
body.modal-active .contact-container {
    filter: blur(5px);
    pointer-events: none;
}

body.modal-active {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px;
        margin: 10px auto;
    }
    
    .contact-body {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .map-section {
        margin-top: 40px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        margin-top: 15px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .email-verification-content {
        padding: 30px 20px;
    }

    .error-modal-content {
        padding: 20px;
    }

    .error-footer {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-item {
        padding: 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .input-with-icon input,
    .input-with-icon textarea {
        padding: 12px 12px 12px 40px;
    }
    
    .submit-btn {
        padding: 12px 20px;
    }
}

/* Mobile-specific domains scroll */
@media (max-width: 768px) {
    .domains-grid {
        max-height: 150px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    /* Custom scrollbar for domains grid */
    .domains-grid::-webkit-scrollbar {
        width: 6px;
    }
    
    .domains-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .domains-grid::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }
    
    .domains-grid::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    /* Ensure the error modal content is properly sized on mobile */
    .error-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .error-body {
        max-height: none;
        overflow: visible;
    }
}