/* ==============================================
   CONTACT PAGE SPECIFIC STYLES
   ============================================== */

/* Contact Page Globe and Form Styles */
.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 30s infinite linear;
    cursor: grab;
    background: 
        radial-gradient(circle at 25% 25%, #4a90e2 0%, #2c5aa0 25%, #1e3a5f 50%, #0f1419 100%),
        linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    box-shadow: 
        0 0 50px rgba(74, 144, 226, 0.3),
        inset -30px -30px 80px rgba(0, 0, 0, 0.4),
        inset 20px 20px 80px rgba(255, 255, 255, 0.1);
}

.globe:active {
    cursor: grabbing;
}

.globe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 40%, transparent 70%),
        radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.3) 0%, transparent 50%);
    z-index: 1;
}

.globe::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255,255,255,0.03) 2px,
            transparent 4px,
            transparent 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255,255,255,0.03) 2px,
            transparent 4px,
            transparent 8px
        );
    z-index: 2;
}

.location-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e53e3e;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4);
}

.location-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.location-pin:hover {
    transform: rotate(-45deg) scale(1.3);
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.8);
    background-color: #ff4444;
}

.pin-tooltip {
    position: absolute;
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-blue) transparent transparent transparent;
}

.location-pin:hover .pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px);
}

/* Pin positions for a more realistic globe */
.bangalore-pin {
    top: 58%;
    left: 68%;
    transform: rotate(-45deg) rotateX(-15deg);
}

.chennai-pin {
    top: 68%;
    left: 66%;
    transform: rotate(-45deg) rotateX(-20deg);
}

.delhi-pin {
    top: 42%;
    left: 65%;
    transform: rotate(-45deg) rotateX(-10deg);
}

@keyframes rotate3d {
    from { 
        transform: rotateY(0deg) rotateX(-10deg);
    }
    to { 
        transform: rotateY(360deg) rotateX(-10deg);
    }
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(36, 50, 75, 0.1);
}

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

.btn-submit {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
    background-color: #1a2332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 50, 75, 0.3);
}

/* Maps container styling */
.maps-container {
    position: relative;
}

/* Office locations styling */
.office-location {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.office-location:hover {
    border-color: var(--accent-brown);
    box-shadow: 0 4px 12px rgba(183, 127, 88, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .globe-container {
        width: 300px;
        height: 300px;
    }
    
    .form-input, .form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
