/*
* Rigel Design Services - Contact Page Stylesheet
* Version: 1.0.0
*/

/* Contact Hero Section
   ========================================================================== */
.contact-hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dot.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.contact-intro {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(33, 33, 33, 0.5);
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    transition: all 0.5s ease;
}

.contact-card:hover .card-icon::after {
    top: -20%;
    left: -20%;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Form Section
   ========================================================================== */
.contact-form-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dot.svg') repeat;
    opacity: 0.03;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 70%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-bg-2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1), transparent 70%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Contact Info Column Styles */
.contact-info-column {
    position: relative;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(33, 33, 33, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dot.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.info-content p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.info-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

/* Why Choose Us Section */
.why-choose-us {
    margin-top: auto;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-us h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Social Connect Section */
.social-connect {
    margin-top: auto;
    text-align: center;
}

.social-connect h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Form Card Styles */
.contact-form-column {
    position: relative;
}

.form-card {
    background-color: var(--dark-bg-2);
    border-radius: 16px;
    overflow: hidden;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    height: 100%;
    position: relative;
    z-index: 1;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1), transparent 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

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

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

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

.input-with-icon i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.textarea-icon i {
    top: 1.5rem;
    transform: none;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.form-group:focus-within .input-with-icon i {
    color: var(--primary-color);
}

.form-group {
    position: relative;
    flex: 1;
    transition: all 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: rgba(33, 33, 33, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(33, 33, 33, 0.7);
}

/* Form Footer Styles */
.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 60%;
}

.privacy-notice i {
    color: var(--primary-color);
    font-size: 1rem;
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    border-radius: 3px;
    opacity: 0;
}

.form-group.focused .input-focus-effect {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 220px;
}

.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: all 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

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

.submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 107, 0, 0.4);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn.sending {
    pointer-events: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.submit-btn.sending span {
    animation: fadeOut 0.5s forwards;
}

.submit-btn.sending i {
    animation: sendingIcon 1.5s infinite;
}

.submit-btn.sent {
    background: #28a745;
    pointer-events: none;
}

.submit-btn.sent i {
    animation: none;
    transform: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes sendingIcon {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(10px) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translateX(20px) scale(1);
        opacity: 0;
    }
}

.contact-image {
    flex: 1;
    position: relative;
}

.image-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.7) 0%, rgba(33, 33, 33, 0.7) 100%);
    mix-blend-mode: multiply;
}

.contact-benefits {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(33, 33, 33, 0.5);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-benefits h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-benefits h3::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.benefits-list li i {
    color: var(--primary-color);
}

.contact-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dot.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.contact-cta p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.call-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(255, 107, 0, 0.3);
    font-size: 1.1rem;
}

.call-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 107, 0, 0.4);
}

.call-now-btn i {
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

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

/* Map Section
   ========================================================================== */
.map-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-bg-2);
    text-align: center;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-iframe {
    border: 0;
    display: block;
}

.footer-email {
    color: inherit;
    text-decoration: none;
}

/* FAQ Section
   ========================================================================== */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-bg);
    text-align: center;
}

.faq-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--dark-bg-2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
    text-align: left;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    background-color: rgba(255, 107, 0, 0.1);
}

.faq-item.active .faq-toggle {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Animations
   ========================================================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .form-container {
        max-width: 90%;
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 400px;
    }
    
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-intro {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.8rem;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 100%;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 1rem 1.5rem;
    }
    
    .input-with-icon i {
        font-size: 0.9rem;
    }
}
