/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.contact-info, .contact-form-section {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-info h3, .contact-form-section h3 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after, .contact-form-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}


.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info p i {
    color: var(--primary-blue);
    font-size: 1.4em;
    margin-right: 15px;
    width: 25px; /* Fixed width for icon alignment */
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.8em;
    color: var(--primary-blue);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #0F1659;
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-blue), 0.2); /* Light blue glow */
    outline: none;
}

.form-submit-btn {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px var(--shadow-medium);
}

.form-submit-btn:hover {
    background-color: #0F1659;
    transform: translateY(-2px);
}

.map-container {
    margin-top: 60px;
    padding: 30px;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin-bottom: 60px;
}

.map-container h2 {
    margin-bottom: 30px;
    text-align: center;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
}

/* Comments Section */
.comments-section {
    padding: 50px;
    background-color: var(--secondary-tan);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin-top: 60px;
}

.comments-section h2 {
    margin-bottom: 40px;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.comment-meta strong {
    color: var(--primary-blue);
}

.comment-item p {
    font-size: 1em;
    line-height: 1.7;
}

.success-message {
    color: green;
    background-color: #e6ffe6;
    border: 1px solid green;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Modal Styles (Login/Register) */
/* ===== Modal Overlay ===== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Stays on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
  justify-content: center;
  align-items: center;
}

/* Show modal when active */
.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* ===== Modal Box ===== */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* ===== Close Button ===== */
.close-button {
  color: #555;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}

.close-button:hover {
  color: #000;
}

/* ===== Tabs ===== */
.modal-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.tab-button {
  background: none;
  border: none;
  font-size: 16px;
  padding: 10px 0;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

/* ===== Forms ===== */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.btn.form-submit-btn {
  width: 100%;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.form-submit-btn:hover {
  background-color: #0056b3;
}

/* ===== Messages ===== */
.error-message {
  color: #d9534f;
  background-color: #f8d7da;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}