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

.contact-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 223, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-accent);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:active {
    transform: translateY(-3px) scale(1.01);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-dark), #4a6e6e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-accent), #ffd700);
    transform: rotate(5deg) scale(1.1);
}

.contact-item:hover .contact-icon svg {
    fill: var(--primary-dark);
    transform: scale(1.2);
}

/* Specific icon animations */
.contact-item[data-contact="phone"]:hover .contact-icon svg {
    animation: phoneRing 0.6s ease-in-out 2;
}

.contact-item[data-contact="email"]:hover .contact-icon svg {
    animation: emailBounce 0.8s ease-in-out;
}

.contact-item[data-contact="location"]:hover .contact-icon svg {
    animation: locationPulse 1s ease-in-out infinite;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-content a,
.location-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: var(--primary-accent);
}

.contact-hint {
    font-size: 0.85rem;
    color: #888;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Response time indicator */
.response-time {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: #f8fffe;
    border-left: 4px solid var(--primary-accent);
    border-radius: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #22c55e;
    opacity: 0.3;
    animation: pulseRing 2s ease-in-out infinite;
    transform-origin: center center;
}

.status-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-container {
    padding: 3rem;
}

.contact-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #222;
    background-color: #fff;
    border: 1px solid #ccc;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

/* Floating label effect */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.10rem;
    left: 0.6rem;
    font-size: 0.8rem;
    padding: 0 0.2rem;
    background-color: #fff;
    color: var(--primary-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(47, 79, 79, 0.1);
    outline: none;
}

.form-group ul.errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Keyframe animations */
@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70% { transform: rotate(-10deg); }
    20%, 40%, 60% { transform: rotate(10deg); }
    80% { transform: rotate(-5deg); }
    90% { transform: rotate(5deg); }
}

@keyframes emailBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes locationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }
}

/* Mobile Responsiveness for status dot */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .status-indicator {
        justify-content: center;
    }

    .status-dot {
        flex-shrink: 0;
    }

    .status-dot::after {
        top: 0;
        left: 0;
    }
}
