/* contact.css - Styles for Payric Contact Page */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.contact-hero .back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin-bottom: 30px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.contact-hero .back-to-home:hover {
    opacity: 1;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Info Section */
.contact-info {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-method {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.contact-method h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-method p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.method-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.method-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.method-hours {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto 50px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-intro h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-intro p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.form-tips {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.form-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.form-tip:last-child {
    margin-bottom: 0;
}

.form-tip i {
    color: #3498db;
    margin-top: 3px;
}

.form-tip span {
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Message Containers */
.message-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.message-content.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message-content.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message-content i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.message-content h3 {
    margin-bottom: 5px;
}

.message-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Form Styles */
#payric-contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 5px;
}

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.95rem;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.form-note {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 15px;
}

.form-note a {
    color: #3498db;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Spinner for submit button */
.spinner {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    height: 20px;
}

.spinner div {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* FAQ Preview */
.faq-preview {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

.faq-preview h3 {
    margin-bottom: 25px;
    color: #2c3e50;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: #f1f8ff;
}

.faq-question span {
    font-weight: 600;
    color: #2c3e50;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: gap 0.3s;
}

.faq-link:hover {
    gap: 12px;
}

/* Team Section */
.contact-team {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.member-role {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.member-bio {
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* CTA Section */
.contact-cta {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-method,
    .team-member {
        padding: 20px;
    }
}