/* ============================================
   PC GILMORE - Contact Page Styles (IMPROVED)
   ============================================ */


/* Page Header */

.page-header {
    background-color: var(--primary-color);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/image/background_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.98) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(245, 240, 232, 0.9);
    font-size: 1.2rem;
}


/* Contact Section */

.contact-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}


/* Contact Form */

.contact-form-wrapper {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(-30px);
}

.contact-form-wrapper.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-wrapper>p {
    color: #666;
    margin-bottom: 30px;
}

.product-inquiry-banner {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06) 0%, rgba(248, 249, 250, 0.8) 100%);
    margin-bottom: 20px;
}

.product-inquiry-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-inquiry-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-inquiry-text strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.inquiry-product-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inquiry-product-list li {
    padding: 8px 12px;
    background-color: rgba(0, 102, 255, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.inquiry-product-list li .product-name {
    flex: 1;
}

.btn-remove-product {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
}

.btn-remove-product:hover {
    background-color: rgba(0, 102, 255, 0.15);
    color: var(--accent-color);
}

.btn-remove-product svg {
    display: block;
}

.btn-choose-product {
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e8e0d0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}


/* Custom Quantity Field */

.custom-quantity-group {
    animation: slideDown 0.3s ease;
}

.custom-quantity-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 366px;
}

.custom-quantity-group input[type="number"]::-webkit-outer-spin-button,
.custom-quantity-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.btn-submit {
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Contact Info - IMPROVED MODERN BACKGROUND */

.contact-info-wrapper {
    opacity: 0;
    transform: translateX(30px);
}

.contact-info-wrapper.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease 0.2s;
}

.contact-info-card {
    /* Modern gradient background with red and black tones */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 35%, #2d0a0a 70%, #1a0a0a 100%);
    border-radius: 20px;
    padding: 50px;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(220, 20, 20, 0.3);
}


/* Add a subtle overlay pattern for depth */

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
}


/* Add animated gradient accent */

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc1414, #ff3333, #dc1414);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.contact-info-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.contact-info-card>p {
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(220, 20, 20, 0.3) 0%, rgba(255, 51, 51, 0.15) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(220, 20, 20, 0.4);
    transition: all 0.3s ease;
}

.contact-info-item:hover .info-icon {
    background: linear-gradient(135deg, rgba(220, 20, 20, 0.45) 0%, rgba(255, 51, 51, 0.3) 100%);
    border-color: rgba(255, 51, 51, 0.6);
    transform: scale(1.05);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: #ff4444;
}

.info-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    color: rgba(245, 240, 232, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-content a {
    color: rgba(245, 240, 232, 0.85);
    transition: color var(--transition-speed);
}

.info-content a:hover {
    color: #ff4444;
}

.social-section {
    padding-top: 25px;
    border-top: 1px solid rgba(245, 240, 232, 0.2);
    position: relative;
    z-index: 1;
}

.social-section h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-info-card .social-links {
    display: flex;
    gap: 12px;
}


/* Use the same neutral social-link styling as the footer for consistency */

.contact-info-card .social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(245, 240, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
    border: none;
}

.contact-info-card .social-link:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-info-card .social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}


/* Map Section */

.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    padding: 80px 40px;
    text-align: center;
}

.map-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.map-icon svg {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-placeholder p {
    color: #666;
    margin-bottom: 25px;
}

.map-placeholder .btn {
    display: inline-flex;
    align-items: center;
}


/* Google Maps Iframe Styles */

.map-iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    margin-top: 20px;
    border: 0;
}


/* Desktop Map - Show on desktop, hide on mobile/tablet */

.map-desktop {
    display: block;
    height: 600px;
}

.map-mobile {
    display: none;
    height: 300px;
}


/* FAQ Section */

.faq-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

.faq-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-question h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
    padding-right: 20px;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background-color: var(--secondary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-speed);
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-toggle {
    background-color: var(--primary-color);
}

.faq-item.active .faq-toggle svg {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    padding: 0 30px 25px;
    color: #555;
    line-height: 1.7;
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}


/* Responsive Styles */


/* Tablet Landscape */

@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .page-header p {
        font-size: 1.1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form-wrapper,
    .contact-info-card {
        padding: 40px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* Tablet Portrait */

@media (max-width: 768px) {
    .page-header {
        padding: 110px 0 50px;
    }
    .page-header h1 {
        font-size: 1.9rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .contact-section,
    .faq-section {
        padding: 60px 0;
    }
    .map-section {
        padding: 50px 0;
    }
    .contact-form-wrapper {
        padding: 30px 25px;
        border-radius: 15px;
    }
    .contact-info-card {
        padding: 30px 25px;
        border-radius: 15px;
    }
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }
    .contact-form-wrapper>p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    .product-inquiry-banner {
        margin-bottom: 15px;
    }
    .product-inquiry-content {
        gap: 12px;
    }
    .product-inquiry-text {
        font-size: 0.9rem;
    }
    .inquiry-product-list li {
        font-size: 0.9rem;
        padding: 5px 8px;
    }
    .btn-choose-product {
        width: 100%;
        align-self: stretch;
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .contact-form {
        gap: 15px;
    }
    .form-group label {
        font-size: 0.9rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    .contact-info-card h3 {
        font-size: 1.35rem;
    }
    .contact-info-card>p {
        font-size: 0.9rem;
    }
    .contact-info-list {
        gap: 20px;
        margin-bottom: 30px;
    }
    .contact-info-item {
        gap: 15px;
    }
    .info-icon {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }
    .info-icon svg {
        width: 22px;
        height: 22px;
    }
    .info-content h4 {
        font-size: 1rem;
    }
    .info-content p {
        font-size: 0.9rem;
    }
    .social-section h4 {
        font-size: 0.95rem;
    }
    .contact-info-card .social-link {
        width: 40px;
        height: 40px;
    }
    .map-wrapper {
        border-radius: 15px;
    }
    .map-placeholder {
        padding: 60px 30px;
    }
    /* Hide desktop map, show mobile map on tablet */
    .map-desktop {
        display: none;
    }
    .map-mobile {
        display: block;
        height: 300px;
    }
    .map-icon {
        width: 70px;
        height: 70px;
    }
    .map-icon svg {
        width: 35px;
        height: 35px;
    }
    .map-placeholder h3 {
        font-size: 1.3rem;
    }
    .faq-item {
        border-radius: 12px;
    }
    .faq-question {
        padding: 20px;
    }
    .faq-question h4 {
        font-size: 0.95rem;
    }
    .faq-toggle {
        width: 28px;
        height: 28px;
    }
    .faq-toggle svg {
        width: 14px;
        height: 14px;
    }
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
}


/* Mobile */

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
    .contact-section,
    .faq-section {
        padding: 50px 0;
    }
    .map-section {
        padding: 40px 0;
    }
    .contact-form-wrapper,
    .contact-info-card {
        padding: 22px 18px;
    }
    .contact-form-wrapper h2 {
        font-size: 1.3rem;
    }
    .product-inquiry-banner {
        padding: 14px 16px;
        margin-bottom: 15px;
    }
    .product-inquiry-text {
        font-size: 0.85rem;
    }
    .inquiry-product-list li {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    .btn-choose-product {
        padding: 9px 16px;
        font-size: 0.9rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 13px;
        font-size: 0.9rem;
    }
    .form-group select {
        background-size: 16px;
        padding-right: 40px;
    }
    .btn-submit {
        padding: 12px 20px;
    }
    .contact-info-card h3 {
        font-size: 1.2rem;
    }
    .contact-info-item {
        gap: 12px;
    }
    .info-icon {
        width: 42px;
        height: 42px;
    }
    .info-icon svg {
        width: 20px;
        height: 20px;
    }
    .info-content h4 {
        font-size: 0.95rem;
    }
    .info-content p {
        font-size: 0.85rem;
    }
    .contact-info-card .social-link {
        width: 38px;
        height: 38px;
    }
    .contact-info-card .social-link svg {
        width: 18px;
        height: 18px;
    }
    .map-placeholder {
        padding: 45px 20px;
    }
    /* Ensure mobile map is shown on mobile */
    .map-desktop {
        display: none;
    }
    .map-mobile {
        display: block;
        height: 300px;
    }
    .map-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    .map-icon svg {
        width: 30px;
        height: 30px;
    }
    .map-placeholder h3 {
        font-size: 1.2rem;
    }
    .map-placeholder p {
        font-size: 0.9rem;
    }
    .faq-question {
        padding: 18px 15px;
    }
    .faq-question h4 {
        font-size: 0.9rem;
    }
    .faq-answer p {
        padding: 0 15px 18px;
        font-size: 0.85rem;
    }
    .modal-content {
        padding: 30px 20px;
        border-radius: 15px;
    }
    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    .modal-icon svg {
        width: 35px;
        height: 35px;
    }
    .modal-content h3 {
        font-size: 1.3rem;
    }
    .modal-content p {
        font-size: 0.9rem;
    }
}