/*
 * Contact Page Specific Styles
 * One Sphere Solutions
 */

/* Main content */
.os-main-content {
    padding-top: 100px;
    min-height: calc(100vh - 100px);
}

/* Contact section */
.os-contact-section {
    padding: 40px 20px;
}

.os-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.os-contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.os-divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 0 0 30px 0;
}

/* Contact Information Cards */
.os-contact-info {
    margin-bottom: 40px;
}

.os-contact-item {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 4px;
}

.os-contact-item:hover {
    background-color: #f9f9f9;
}

.os-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.os-contact-label {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
}

.os-contact-label i {
    color: #d9a442;
    font-size: 18px;
    margin-right: 10px;
}

.os-contact-value {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    word-break: keep-all;
    white-space: nowrap;
    text-align: right;
}

.os-divider-light {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 0;
}

/* Map Container */
.os-map-wrapper {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.os-location-indicator {
    background-color: #283848;
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.os-location-indicator i {
    color: #d9a442;
    margin-right: 10px;
    font-size: 20px;
}

.os-map-container {
    width: 100%;
    max-width: 700px;
    height: 350px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative;
}

/* Custom Marker */
.custom-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
    transition: opacity 0.5s ease;
}

.marker-pin {
    width: 30px;
    height: 30px;
    background-color: #d9a442;
    border-radius: 50%;
    border: 3px solid #283848;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    animation: bounce 1.5s infinite;
}

.marker-pin::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background-color: rgba(217, 164, 66, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

.marker-shadow {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    filter: blur(2px);
}

.marker-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #283848;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Social Media Section */
.os-social-section {
    margin-bottom: 40px;
}

.os-social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.os-social-label {
    font-size: 18px;
    font-weight: 500;
    color: #555;
}

.os-social-links {
    display: flex;
    gap: 15px;
}

.os-social-link {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.os-social-link:hover {
    transform: scale(1.2);
}

.os-social-link.facebook {
    color: #3b5998;
}

.os-social-link.twitter {
    color: #000000;
}

.os-social-link.instagram {
    color: #e1306c;
}

.os-social-link.linkedin {
    color: #0077b5;
}

/* Form Section */
.os-form-section {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Ensure relative positioning for toast container */
}

.os-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.os-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.os-logo-column {
    flex: 0 0 200px;
}

.os-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.os-company-logo {
    max-width: 100%;
    height: auto;
}

.os-form-column {
    flex: 1;
    min-width: 280px;
}

.os-form-group {
    margin-bottom: 15px;
}

.os-form-group input,
.os-form-group select,
.os-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.os-form-group input:focus,
.os-form-group select:focus,
.os-form-group textarea:focus {
    border-color: #d9a442;
    outline: none;
}

/* Textarea wrapper for better styling */
.os-textarea-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.os-textarea-wrapper textarea {
    transition: border 0.3s ease;
}

/* Add visual indicators when approaching or exceeding limit */
.os-textarea-wrapper.approaching-limit textarea {
    border-color: #FF9800 !important;
}

.os-textarea-wrapper.limit-reached textarea {
    border-color: #F44336 !important;
}

/* Word counter styles */
.os-word-counter {
    text-align: right;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    padding: 2px 5px;
    transition: all 0.3s ease;
}

.os-word-counter.approaching-limit {
    color: #FF9800;
    font-weight: bold;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 3px;
    padding: 3px 8px;
}

.os-word-counter.limit-reached {
    color: #F44336;
    font-weight: bold;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 3px;
    padding: 3px 8px;
}

/* Add animation for word count when approaching limit */
#word-count {
    font-weight: 600;
    transition: color 0.3s ease;
}

.os-word-counter.approaching-limit #word-count {
    color: #FF9800;
}

.os-word-counter.limit-reached #word-count {
    color: #F44336;
    animation: pulse 1s infinite;
}

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

.os-form-footer {
    margin-top: 20px;
}

.os-form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.os-file-upload {
    display: flex;
}

.os-file-upload-btn {
    background-color: rgb(41, 46, 52);
    color: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.os-file-upload-btn:hover {
    background-color: #1e2328;
}

.os-hidden-file-input {
    display: none;
}

.os-terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-form-submit {
    display: flex;
}

.os-submit-btn {
    background-color: rgb(40, 41, 43);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.os-submit-btn:hover {
    background-color: #1e1f20;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

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

@keyframes os-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Apply animation to location marker */
.os-location-indicator i {
    animation: os-pulse 2s infinite;
    display: inline-block;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .os-nav-bar {
        padding: 20px 20px;
    }

    .os-logo {
        right: 20px;
    }

    .os-contact-container {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .os-nav-left {
        gap: 15px;
    }

    .os-nav-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .os-nav-link {
        font-size: 14px;
    }

    .os-logo img {
        max-height: 50px;
    }

    .os-contact-label {
        font-size: 16px;
    }

    .os-contact-value {
        font-size: 16px;
    }

    .os-map-container {
        max-width: 100%;
        height: 280px;
    }

    .os-location-indicator {
        max-width: 100%;
        font-size: 15px;
        padding: 8px 12px;
    }

    .os-location-indicator i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .os-main-content {
        padding-top: 80px;
    }

    .os-contact-title {
        font-size: 28px;
    }

    .os-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .os-contact-label {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .os-contact-value {
        font-size: 15px;
        align-self: flex-start;
        text-align: left;
        padding-left: 28px;
        word-break: break-word;
    }

    .os-form-container {
        flex-direction: column;
    }

    .os-logo-column {
        margin-bottom: 30px;
    }

    .os-social-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .os-social-links {
        align-self: flex-end;
    }

    .os-map-container {
        height: 250px;
    }

    .os-location-indicator {
        font-size: 14px;
        padding: 8px 10px;
    }

    .os-location-indicator i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .os-contact-section {
        padding: 20px 10px;
    }

    .os-contact-container {
        padding: 15px;
    }

    .os-contact-title {
        font-size: 24px;
    }

    .os-contact-item {
        margin-bottom: 15px;
    }

    .os-contact-row {
        padding: 10px 0;
        gap: 5px;
    }

    .os-contact-label {
        font-size: 15px;
    }

    .os-contact-label i {
        font-size: 16px;
        margin-right: 8px;
    }

    .os-contact-value {
        font-size: 14px;
        line-height: 1.4;
        padding-left: 24px;
    }

    .os-form-group {
        margin-bottom: 15px;
    }

    .os-form-group input,
    .os-form-group select,
    .os-form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .os-form-actions {
        gap: 10px;
    }

    .os-map-container {
        height: 220px;
    }

    .os-location-indicator {
        font-size: 12px;
        padding: 6px 8px;
    }

    .os-location-indicator i {
        font-size: 14px;
        margin-right: 5px;
    }
}
