/* Global Styles for Trust Finance */
:root {
  --primary: #4a6fdc;
  --primary-light: #6687e7;
  --primary-dark: #3a5bbd;
  --secondary: #2c3e50;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 50px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
}

/* Loader styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.dollar-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 36px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite ease-in-out;
  z-index: 3;
}

.dollar-circle i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dollar-orbit {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(74, 111, 220, 0.3);
  animation: rotate 12s linear infinite;
}

.dollar-satellite {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dollar-satellite:nth-child(1) {
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation: orbitSatellite1 4s linear infinite;
}

.dollar-satellite:nth-child(2) {
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation: orbitSatellite2 4s linear infinite reverse;
}

.dollar-satellite:nth-child(3) {
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  animation: orbitSatellite3 4s linear infinite;
}

.dollar-satellite:nth-child(4) {
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  animation: orbitSatellite4 4s linear infinite reverse;
}

.loader-text {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 20px;
  text-align: center;
  max-width: 80%;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes orbitSatellite1 {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
  }
}

@keyframes orbitSatellite2 {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
  }
}

@keyframes orbitSatellite3 {
  0% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
  }
}

@keyframes orbitSatellite4 {
  0% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
  }
}

/* Animated dollar sign */
.dollar-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dollar {
  position: absolute;
  font-size: 22px;
  color: var(--primary-light);
  opacity: 0;
  animation: floatDollar 3s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.dollar:nth-child(1) {
  left: 20%;
  top: 60%;
  animation-delay: 0s;
}

.dollar:nth-child(2) {
  left: 40%;
  top: 40%;
  animation-delay: 0.5s;
  font-size: 26px;
}

.dollar:nth-child(3) {
  left: 60%;
  top: 70%;
  animation-delay: 1s;
}

.dollar:nth-child(4) {
  left: 80%;
  top: 50%;
  animation-delay: 1.5s;
  font-size: 20px;
}

.dollar:nth-child(5) {
  left: 30%;
  top: 20%;
  animation-delay: 2s;
  font-size: 24px;
}

.dollar:nth-child(6) {
  left: 70%;
  top: 30%;
  animation-delay: 2.5s;
}

@keyframes floatDollar {
  0% {
    transform: translateY(20px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-80px) rotate(360deg);
    opacity: 0;
  }
}

/* Firebase Status */
.firebase-status {
  background-color: var(--warning);
  color: var(--secondary);
  text-align: center;
  padding: 0.5rem;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 999;
  font-size: 0.9rem;
  display: none;
}

.firebase-status.connected {
  background-color: var(--success);
  color: var(--white);
}

.firebase-status.error {
  background-color: var(--danger);
  color: var(--white);
}

/* Navigation styles */
.main-nav {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 0.8rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  font-size: 2rem;
}

.nav-contact {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: 700;
  margin-right: 20px;
  background: linear-gradient(135deg, rgba(74, 111, 220, 0.1) 0%, rgba(74, 111, 220, 0.05) 100%);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 111, 220, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 111, 220, 0.2);
  background: linear-gradient(135deg, rgba(74, 111, 220, 0.15) 0%, rgba(74, 111, 220, 0.1) 100%);
}

.nav-contact i {
  color: var(--primary);
  margin-right: 8px;
  font-size: 1.1rem;
}

.phone-number {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.main-content {
  margin-top: 80px;
}

/* Button styles */
.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  color: var(--white);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Section styles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.section-title i {
  color: var(--primary);
  margin-right: 10px;
}

/* Card styles */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(74, 111, 220, 0.25);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-sm);
  background-color: var(--white);
}

/* Footer styles */
.footer {
  background-color: var(--secondary);
  background-image: url('src/footerimg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.85);
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a.active {
  color: var(--primary);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.disclaimer {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.admin-link {
  opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 768px) {
  .main-nav {
    padding: 0.5rem 1rem;
  }
  
  .nav-contact {
    display: none;
  }
  
  .nav-container {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  
  .nav-links {
    margin-top: 1rem;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav {
    padding: 0.6rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2.2rem;
}

h2 {
  color: #3498db;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 0.75rem;
}

h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Progress Bar Styles */
.progress-container {
  margin: 2rem 0;
}

.progress-bar {
  display: flex;
  position: relative;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 700px;
}

.progress-bar::before {
  content: "";
  background-color: #e0e0e0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  z-index: 0;
}

.progress {
  background-color: #3498db;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  z-index: 1;
  transition: 0.4s ease;
}

.progress-step {
  background-color: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-step i {
  color: #999;
}

.progress-step.active {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.progress-step.active i {
  color: #3498db;
}

.progress-step.completed {
  border-color: #2ecc71;
  background-color: #2ecc71;
}

.progress-step.completed i {
  color: #fff;
}

.step-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
  white-space: nowrap;
}

.progress-step.active .step-text {
  color: #3498db;
  font-weight: bold;
}

.progress-step.completed .step-text {
  color: #2ecc71;
  font-weight: bold;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s;
}

.form-step.active {
  display: block;
}

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

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

label {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

input, select, textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

small {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.25rem;
}

/* Style for invalid fields */
input.invalid, select.invalid, textarea.invalid {
  border-color: #dc3545;
  background-color: #fff8f8;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.next-step {
  background-color: #3498db;
  color: white;
}

.next-step:hover {
  background-color: #2980b9;
}

.prev-step {
  background-color: #95a5a6;
  color: white;
}

.prev-step:hover {
  background-color: #7f8c8d;
}

.submit-btn {
  background-color: #2ecc71;
  color: white;
}

.submit-btn:hover {
  background-color: #27ae60;
}

.submit-btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Messages */
.success-message {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #d4edda;
  color: #155724;
  border-radius: 4px;
  text-align: center;
  animation: fadeIn 0.5s;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.error-message {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 4px;
  text-align: center;
}

/* Review Section */
.review-section {
  margin-bottom: 2rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 1rem;
}

.review-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3498db;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.review-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem 1.5rem;
}

.review-label {
  font-weight: 600;
  color: #555;
}

.review-value {
  color: #333;
}

/* Terms Agreement */
.terms-agreement {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.terms-agreement input {
  margin-top: 0.2rem;
}

.terms-link {
  color: #3498db;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Security Notice */
.security-notice {
  background-color: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 1rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.security-notice i {
  font-size: 2rem;
  color: #3498db;
}

.security-notice p {
  margin: 0;
  color: #2c3e50;
}

/* Admin Link Styles */
.admin-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-link:hover {
  color: #3498db;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .progress-bar {
    flex-direction: row;
    padding: 0 1rem;
  }
  
  .review-content {
    grid-template-columns: 1fr;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* Address Fields Styling */
.address-container {
  margin-bottom: 1.5rem;
}

.address-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.address-field {
  flex: 1;
  min-width: 150px;
}

.address-field input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.address-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
  background-color: #fff;
}

.address-field small {
  display: block;
  margin-top: 0.25rem;
  color: #6c757d;
  font-size: 0.85rem;
}

/* Responsive adjustments for address fields */
@media (max-width: 768px) {
  .address-field {
    flex: 100%;
  }
} 