/* styles.css - Custom styles for Safer Places Network */

/* General styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
}

/* Buttons */
.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.hero-section {
    position: relative;
    background-color: #0d6efd; /* Keep your primary blue as fallback */
}

.hero-section::before, .footer-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-section::before {
    background-image: url('../img/hero_bg.jpg');
    opacity: 0.4; /* Increasing from your current 0.6 */
}

.footer-cta::before {
    background-image: url('../img/footer_bg.jpg');
    opacity: 0.4; /* Increasing from your current 0.3 */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Form styles */
.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.registration-step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
}

/* Footer */
footer {
    font-size: 0.9rem;
}

footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-cta {
    position: relative;
    background-color: #0d6efd; /* Keep your primary blue as fallback */
}

.footer-cta .container {
    position: relative;
    z-index: 1;
}

/* Stats section */
.display-4 {
    font-weight: 700;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-primary {
    color: #2563eb !important;
}

.bg-primary {
    background-color: #2563eb !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Progress bar styling */
.progress {
    height: 30px;
    border-radius: 5px;
}

.progress-bar {
    background-color: #1e40af;
}

.circular-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.circular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.btn-check:checked + .camera-option-card {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.camera-option-card:hover {
    border-color: #0d6efd;
    transform: translateY(-3px);
}

.camera-icon {
    font-size: 1.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.btn-check:checked + .camera-option-card .camera-icon {
    color: #0d6efd;
}

/* For small screens, stack the options */
@media (max-width: 767.98px) {
    .camera-count-options .row {
        gap: 1rem;
    }
}

/* Camera Brand Cards */
.camera-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    height: 100%;
}

.btn-check:checked + .camera-brand-card {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.camera-brand-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.brand-icon {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.btn-check:checked + .camera-brand-card .brand-icon {
    color: #0d6efd;
}

/* Camera View Cards */
.camera-view-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.btn-check:checked + .camera-view-card {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.camera-view-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.view-icon {
    font-size: 1.5rem;
    color: #6c757d;
    margin-right: 1rem;
}

.btn-check:checked + .camera-view-card .view-icon {
    color: #0d6efd;
}

/* Additional debugging style to make sure everything is visible */
#address-autocomplete-section {
    position: relative;
    z-index: 1;
}

/* Ensure other elements don't overlay the suggestions */
.card-body {
    overflow: visible !important;
}

.address-input-container {
    position: relative !important;
}

#address-suggestions {
    position: absolute !important;
    top: 100% !important; /* Position it directly below the input */
    left: 0 !important;
    width: 100% !important;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 9999 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-top: 0px; /* Small gap between input and dropdown */
}

/* Add extra visibility to the suggestions */
.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    color: #333;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f0f8ff;
}

/* Ensure the button submit works visually */
#submit-registration {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#submit-registration:hover {
    background-color: #157347; /* Slightly darker green on hover */
}

/* Custom toast styling */
.toast-container {
	z-index: 1050;
}

.toast {
	min-width: 280px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 1 !important;
}

.toast-body {
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
}

/* Success toast */
.bg-success {
	background-color: #28a745 !important;
}

/* Error toast */
.bg-danger {
	background-color: #dc3545 !important;
}

/* Animation for toasts */
@keyframes toast-in-right {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

.toast {
	animation: toast-in-right .3s ease-in-out;
}

/* Styles for location type cards */
.location-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 2px solid #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  height: 100%;
}

.btn-check:checked + .location-option-card {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.location-option-card:hover {
  border-color: #0d6efd;
  transform: translateY(-3px);
}

.location-icon {
  font-size: 2rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.btn-check:checked + .location-option-card .location-icon {
  color: #0d6efd;
}


/* Mobile-specific fixes for input styling */
@media (max-width: 767.98px) {
    /* Make the actual input more accessible to touch */
    .btn-check {
        position: absolute;
        clip: rect(0,0,0,0);
        pointer-events: none;
    }
    
    /* Force hardware acceleration and improve touch response */
    .camera-option-card,
    .camera-brand-card,
    .camera-view-card,
    .location-option-card {
        -webkit-tap-highlight-color: transparent;
        transform: translateZ(0);
        will-change: transform;
        touch-action: manipulation;
    }
    
    /* Make selection more obvious */
    .btn-check:checked + .camera-option-card,
    .btn-check:checked + .camera-brand-card,
    .btn-check:checked + .camera-view-card,
    .btn-check:checked + .location-option-card {
        border-color: #0d6efd !important;
        background-color: rgba(13, 110, 253, 0.2) !important;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5) !important;
    }
}
/* Add these for mobile-specific adjustments */
@media (max-width: 768px) {
    .hero-section::before, .footer-cta::before {
        opacity: 0.7; /* Higher opacity on mobile for better visibility */
    }
    
    .hero-section, .footer-cta {
        position: relative;
        overflow: hidden; /* Ensure the pseudo-element doesn't get cut off */
    }
}
/* Add this to your CSS file (css/styles.css) */

/* Base styles for location type cards */
.location-type-options .location-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

/* Selected state */
.location-type-options .btn-check:checked + .location-option-card {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.15);
}

/* Icon sizing */
.location-type-options .location-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Hover effect */
.location-type-options .location-option-card:hover {
    border-color: #adb5bd;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .location-type-options .location-option-card {
        padding: 1rem 0.75rem;
    }
    
    .location-type-options .location-icon {
        font-size: 1.75rem;
    }
    
    .location-type-options h5 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .location-type-options small {
        font-size: 0.75rem;
    }
}

/* Small mobile optimizations */
@media (max-width: 576px) {
    .location-type-options .row {
        gap: 0.5rem !important;  /* Override Bootstrap's row gap on very small screens */
    }
    
    .location-type-options .col {
        padding: 0 0.35rem;  /* Reduce padding on columns */
    }
    
    .location-type-options .location-option-card {
        padding: 0.75rem 0.5rem;
    }
    
    .location-type-options .location-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
}

/* Touch device enhancements */
@media (hover: none) {
    .location-type-options .location-option-card {
        /* Make touch targets larger */
        min-height: 100px;
    }
    
    /* Add a subtle active state for touch feedback */
    .location-type-options .location-option-card:active {
        transform: scale(0.98);
        background-color: rgba(0, 0, 0, 0.05);
    }
}