/* Investor Matters Contact Page Styles */

.contact-section {
    background-color: #f3f4f6;
    padding: 80px 0;
    min-height: 600px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.contact-grid.no-form {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

@media (max-width: 992px) {
    .contact-grid.no-form {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Contact Cards (Left Column) */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(8, 29, 58, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (hover: hover) {
    .contact-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(8, 29, 58, 0.08);
    }
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(30, 79, 191, 0.08);
    color: var(--blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-card:hover .contact-card-icon {
    background-color: var(--blue-accent);
    color: var(--white);
}

.contact-card-details {
    flex: 1;
}

.contact-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 2px;
}

.contact-card-content {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.55;
    white-space: pre-line; /* Renders line breaks nicely */
}

.contact-card-content a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.contact-card-content a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Contact Form Card (Right Column) */
.contact-form-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(8, 29, 58, 0.04);
}

.contact-form-header {
    margin-bottom: 30px;
}

.contact-form-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.contact-form-header p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group label span.required {
    color: var(--red);
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #dbe2ee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--navy);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(30, 79, 191, 0.1);
}

.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 13px 16px;
    border: 1.5px solid #dbe2ee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--navy);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group textarea:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(30, 79, 191, 0.1);
}

/* Submit Button Row */
.btn-submit-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.btn-submit-row button.btn-yellow {
    width: 100%;
    height: 52px;
    font-size: 13.5px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit-row button.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 173, 0, 0.3);
}

.btn-submit-row button.btn-yellow:active {
    transform: translateY(0);
}

/* Success Card Styling */
.success-state {
    display: none;
    text-align: center;
    padding: 40px 10px;
}

.success-state.show {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #22c55e;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.success-state h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.success-state p {
    color: var(--muted);
    font-size: 15.5px;
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.success-state button.btn-blue {
    min-width: 180px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    to { transform: scale(1); }
}

/* Validation Alert styling */
.form-alert {
    background-color: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .contact-form-card {
        padding: 30px 24px;
    }
}

/* Page-specific banner images */
.hero-art.investor-matters {
    background-image: url("../images/investor-matters-banner.png");
    background-size: cover;
    background-position: right center;
}

.hero-art.shareholders-matters {
    background-image: url("../images/shareholders-matters-banner.png");
    background-size: cover;
    background-position: right center;
}

.hero-art.compliance-matters {
    background-image: url("../images/compliance-banner.png");
    background-size: cover;
    background-position: right center;
}

/* Contact Side Graphic */
.contact-graphic-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
}

.contact-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(8, 29, 58, 0.04);
}
