/* Custom Styles for Ocean CRM */

/* Standardized Section Spacing (Desktop: 80px, Mobile: 50px) */
.sp, 
.for-whom-diamond-area, 
.faq-area, 
.support-page-area, 
.contact-page-area,
.pricing-plan-page,
.about-page-area1,
.features-page-area,
.testimonial-page-area,
.cta2-area,
.buy-sell-bottom2 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Standardized Hero Spacing */
.pages-hero,
.hero-area2 {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {
    .sp, 
    .for-whom-diamond-area, 
    .faq-area, 
    .support-page-area, 
    .contact-page-area,
    .pricing-plan-page,
    .about-page-area1,
    .features-page-area,
    .testimonial-page-area,
    .cta2-area,
    .buy-sell-bottom2 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .pages-hero,
    .hero-area2 {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }
}

/* Internal Section Spacing (Margins between elements) */
.space120 { height: 80px !important; }
.space100 { height: 80px !important; }
.space80  { height: 60px !important; }
.space60  { height: 40px !important; }

@media (max-width: 768px) {
    .space120, .space100, .space80 { height: 40px !important; }
    .space60 { height: 30px !important; }
}

/* Support Page Styles */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.expert-pillar a:hover {
    color: var(--theme-primary) !important;
}

.pillar-icon-inner {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: rotate(45deg);
}

.pillar-icon-inner i {
    transform: rotate(-45deg);
    font-size: 32px;
}

.pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 1px solid var(--theme-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

/* Common Support Card Styles */
.support-card {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: 0.3s;
}

.support-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--theme-primary);
}

/* Diamond Industry Grid Section */
.for-whom-diamond-area {
    position: relative;
    overflow: hidden;
}

.for-whom-badge {
    background: var(--theme-primary);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 60px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.industry-diamond-box {
    position: relative;
    padding: 20px;
    margin-bottom: 40px;
    transition: 0.4s;
}

.diamond-shape-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.diamond-bg {
    width: 100%;
    height: 100%;
    background: #f0fbff;
    border: 1px solid #e0f0ff;
    transform: rotate(45deg);
    border-radius: 20px;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-diamond-box:hover .diamond-bg {
    background: var(--theme-primary);
    transform: rotate(45deg) scale(1.1);
    border-color: var(--theme-primary);
}

.diamond-icon {
    transform: rotate(-45deg);
    font-size: 32px;
    color: var(--theme-primary);
    transition: 0.5s;
}

.industry-diamond-box:hover .diamond-icon {
    color: #ffffff;
}

.industry-diamond-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    transition: 0.3s;
}

.industry-diamond-box:hover h4 {
    color: var(--theme-primary);
}

.industry-diamond-box .pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid var(--theme-primary);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

.industry-diamond-box:hover .pulse-effect {
    animation: diamondPulse 2s infinite;
}

/* Main Contact Page Form Styles */
.contact-form-all {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.05);
    border: 1px solid #f0f7ff;
}

.form-inputs h5 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.form-inputs .input {
    margin-bottom: 20px;
}

.form-inputs input,
.form-inputs textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fcfdfe;
    transition: 0.3s;
    outline: none;
    font-size: 15px;
    color: #333;
}

.form-inputs input:focus,
.form-inputs textarea:focus {
    border-color: var(--theme-primary);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.08);
}

.form-inputs .button .theme-btn2 {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.contact-page-boxs .single-box {
    background: #fbfdff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #f0f7ff;
    transition: 0.3s;
}

.contact-page-boxs .single-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.05);
    border-color: var(--theme-primary);
}

.contact-page-boxs .single-box .icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.05);
    margin-bottom: 15px;
}

.map-area {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.contact-map {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Footer Form Section */
.footer-cta-form-area {
    padding-top: 80px; /* Match standard */
    padding-bottom: 140px; /* Extra bottom for footer overlap */
    position: relative;
    z-index: 10;
}

.footer-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.05);
}

.footer-form-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.footer-form-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.footer-form-card .form-group {
    margin-bottom: 15px;
}

.footer-form-card input,
.footer-form-card textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    transition: 0.3s;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.footer-form-card input:focus,
.footer-form-card textarea:focus {
    border-color: var(--theme-primary);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.05);
}

.footer-form-card .theme-btn11 {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: var(--theme-primary);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.footer2 {
    margin-top: -80px; /* Adjust to match CTA bottom padding */
    padding-top: 120px !important;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .footer-cta-form-area {
        padding-bottom: 60px;
    }

    .footer2 {
        margin-top: 0;
        padding-top: 60px !important;
    }

    .footer-form-card {
        padding: 25px;
    }
}

/* Mobile Sidebar Premium Theme (White & Professional) */
.mobile-sidebar {
    background: #ffffff !important; 
    padding-top: 60px !important;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
}

.mobile-nav li a {
    color: #1a1a1a !important; 
    font-weight: 600 !important;
    border-bottom: 1px solid #f5f5f5;
    padding: 15px 0 !important;
}

.mobile-sidebar .theme-btn2 {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.menu-close {
    color: #333 !important;
    background: #f0f0f0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-sidebar .contact-infos h3 {
    color: #1a1a1a !important;
    font-size: 19px;
    margin-top: 35px;
    border-bottom: 2px solid var(--theme-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.mobile-sidebar .contact-infos .box {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.mobile-sidebar .contact-infos .box .icon {
    margin-right: 15px !important;
    flex-shrink: 0;
}

.mobile-sidebar .contact-infos .box .icon span {
    background: #f0f8ff !important;
    color: var(--theme-primary) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-sidebar .contact-infos .box .pera {
    display: block !important;
}

.mobile-sidebar .contact-infos .box .pera a {
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500;
    display: block !important;
}

/* Section Responsiveness Fix (Stapes & Hero) at 900px */
@media (max-width: 991px) {
    .stapes .row {
        flex-direction: column-reverse !important; 
        margin-bottom: 50px;
    }
    
    .stapes-images1, .stapes-images2 {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .stapes-images1 .image1, .stapes-images2 .image1 {
        margin: 0 !important;
        max-width: 85%;
        text-align: center;
    }

    .stapes .stapes-images1 .image2 {
        width: 150px;
        height: 150px;
        opacity: 0.15;
        z-index: -1;
        top: 0;
        right: 0;
    }

    .stapes .stapes-images2 .image2 {
        width: 150px;
        height: 150px;
        opacity: 0.15;
        z-index: -1;
        top: 0;
        left: 0;
    }

    .stapes .headding2 {
        text-align: center !important;
    }
    
    .hero-area2 {
        text-align: center;
    }
    .hero2-content .hero-btns {
        justify-content: center;
    }
}

@keyframes diamondPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}
