/* 
 * Contact Page Styles
 * Styles for the Contact page template
 */

/* Contact Form Notices */
.contact-notice {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    background-color: #000000;
    border: 1px solid var(--c-border);
    color: var(--c-accent);
}

.contact-notice--success {
    border-left: 4px solid var(--c-accent);
}

.contact-notice--error {
    border-left: 4px solid #ff4d4d;
    color: #ff4d4d;
}

.contact-section {
    margin: 2rem 0;
    width: 100%;
}

.contact-section__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-section__form {
    background-color: var(--c-surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.contact-section__info {
    width: 100%;
}

.contact-section__form h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 1.5rem;
    color: var(--c-heading);
}

.contact-section__intro {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--c-text);
}

/* Form styles */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--c-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--c-accent);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Only allow vertical resizing */
}

.form-group button {
    font-size: 1rem;
    padding: 1rem 1.5rem;
}

/* Captcha styling */
.button-captcha-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.captcha-heading {
    margin-bottom: 0.5rem;
}

.captcha-heading small {
    color: var(--c-text-secondary, #666);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.captcha-wrapper label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.captcha-wrapper input[type="number"] {
    width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .button-captcha-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button-captcha-group button {
        margin-top: 0.5rem;
    }
}

.form-group .btn-primary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contact info styles */
.contact-section__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Base contact card styles */
.contact-card {
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--button-shadow);
    position: relative;
    overflow: hidden;
}

/* Common styles for cards with icon backgrounds */
.contact-card::after {
    content: '';
    position: absolute;
    bottom: -65%;
    left: -25%;
    width: 150%;
    height: 150%;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Contact info card (green with circle icon) */
.contact-card:first-child {
    background-color: var(--c-accent);
}

.contact-card:first-child::after {
    background-image: url('../images/circle-icon.svg');
    opacity: 0.3;
}

.contact-card:first-child h3,
.contact-card:first-child li {
    color: #000;
    position: relative;
    z-index: 2;
}

/* Services card (dark with star icon) */
.contact-card:last-child {
    background-color: #141414;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-card:last-child::after {
    background-image: url('../images/star-icon.svg');
    opacity: 0.2;
}

.contact-card:last-child h3,
.contact-card:last-child li {
    color: #fff;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-list,
.contact-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.contact-services li {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-text {
    display: inline-block;
}

/* Link styles for contact info card */
.contact-card:first-child .contact-list a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card:first-child .contact-list a:hover {
    text-decoration: underline;
}

/* Link styles for services card */
.contact-card:last-child .contact-services a {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card:last-child .contact-services a:hover {
    color: var(--c-accent-light);
}

.contact-card:last-child .service-icon {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.contact-card:last-child .service-icon img {
    width: 36px;
    height: 36px;
    stroke: var(--c-accent);
    transition: transform 0.2s ease;
}

.contact-card:last-child .contact-services a:hover .service-icon img {
    transform: translateX(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-section__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
