
/* Page Header (Red Strip) */
.page-header {
    background-color: #b00024;
    padding: 40px 0;
    margin-bottom: 30px 50px;
}

.page-header h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    margin-top: 85px;
}

/* Layout Spacing */
.contact-section {
    padding-bottom: 80px;
}

/* --- FORM STYLES --- */
.form-title {
    margin-top: 40px;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50; /* Dark Blue/Grey for labels */
    margin-bottom: 5px;
}

/* The Line Input Style */
.form-control-line {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc; /* Default Grey Line */
    padding: 10px 0;
    font-size: 1rem;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
    resize: none; /* For textarea */
}

/* Animated Focus Effect */
.form-control-line:focus {
    border-bottom: 2px solid #c2102e; /* Red Line on Focus */
}

/* Submit Button */
.submit-btn {
    width: 100%; /* Full width like in design */
    background-color: #c2102e;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #a00d26; /* Darker red */
}

.submit-btn:active {
    transform: scale(0.98);
}

/* --- INFO CARD (RIGHT COLUMN) --- */
.contact-info-card {
    background-color: #f5f5f5; /* Light Grey Background */
    padding: 40px;
    border-radius: 8px;
    height: 100%;
    margin-top: 40px;
}

.info-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.info-block h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.address-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.coordinates {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    word-break: break-all; /* Ensures long coordinates don't break layout */
}

/* Icons & Links */
.icon-link {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-link i {
    color: #555;
    width: 25px; /* Fixed width for alignment */
    font-size: 1rem;
    margin-right: 10px;
}

.icon-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.icon-link a:hover {
    color: #c2102e;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    /* On tablets/mobile, add spacing between form and info card */
    .contact-info-card {
        margin-top: 40px; 
        padding: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* --- MAIN CONTAINER --- */
.cr-section {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    padding: 60px 20px;
    margin: 20px;
    opacity: 0; /* Hidden initially for animation */
    transform: translateY(30px);
    animation: crFadeInUp 0.8s ease-out forwards;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- HEADER STYLES --- */
.cr-header-box {
    text-align: center;
    margin-bottom: 50px;
}

.cr-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

/* --- SEPARATOR STYLES --- */
.cr-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cr-line {
    width: 40px;
    height: 3px;
    background-color: #a51c30; /* Deep Red */
    border-radius: 2px;
}

.cr-dot {
    width: 8px;
    height: 8px;
    background-color: #a51c30;
    border-radius: 50%;
}

.cr-description {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- FORM STYLES --- */
.cr-contact-form {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cr-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.cr-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    margin-left: 2px;
}

.cr-field, 
.cr-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.cr-textarea {
    min-height: 200px;
    resize: vertical;
}

/* Focus Effects */
.cr-field:focus, 
.cr-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Error States */
.cr-field.cr-error,
.cr-textarea.cr-error {
    border-color: #a51c30;
    background-color: #fff5f5;
}

.cr-error-msg {
    color: #a51c30;
    font-size: 0.85rem;
    margin-top: -5px;
    display: none;
}

.cr-error-msg.visible {
    display: block;
    animation: crShake 0.3s ease-in-out;
}

/* --- BUTTON STYLES --- */
.cr-action-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-self: flex-start;
}

.cr-action-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cr-action-btn:active {
    transform: translateY(-1px);
}

.cr-action-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- ANIMATIONS --- */
@keyframes crFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes crShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .cr-title {
        font-size: 2rem;
    }
    
    .cr-contact-form {
        width: 100%;
    }

    .cr-action-btn {
        width: 100%; /* Full width on mobile */
        text-align: center;
    }
    .page-header h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
}
}

@media (max-width: 480px) {
    .cr-section {
        padding: 40px 15px;
        margin: 0;
    }

    .cr-title {
        font-size: 1.75rem;
    }
}