/* 1SQFT Common Styles - Following BEM naming convention */

/* CSS Custom Properties for Brand Consistency */
:root {
  --color-primary: #d72f2f;
  --color-primary-hover: #d72f2fdd;
  --color-primary-light: #d72f2f19;
  --color-secondary: #476bf5;
  --color-white: #ffffff;
  --color-background: #f1f1f1;
  --color-text-primary: #000e14;
  --color-text-secondary: #7f7878;
  --color-text-muted: #7d7d7d;
  --color-border: #d1d1d1;
  --color-border-light: #efefef;
  
  --font-family-primary: "Poppins", sans-serif;
  --font-family-secondary: "Inter", sans-serif;
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 64px;
  
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 32px;
  
  --shadow-light: 0px 4px 8px rgba(255, 255, 255, 0.3);
  --shadow-medium: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-family-primary);
  line-height: 1.6;
  color: var(--color-text-primary);
}

/* Accessibility - Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Button Styles */
.btn {
  height: 60px;
  border-radius: 16px;
  font-size: 18px;
  font-family: var(--font-family-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 0 var(--spacing-lg);
}

.btn--primary {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn--primary:disabled {
  background: #ddd;
  border-color: #ddd;
  color: var(--color-text-muted);
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Legacy support for existing classes */
.btn.btn-primary {
  background: #d72f2f;
  justify-content: center;
  display: flex;
  border: 1px solid #d72f2f;
  color: #fff;
  text-shadow: 0 0 4px #fffc;
  min-width: 200px;
}

.btn.btn-primary > a {
  color: #fff;
  text-decoration: none;
}

.btn.btn-primary:hover {
  background: #d72f2fdd;
  border: 1px solid #d72f2fdd;
  color: #fff;
  text-shadow: 0 0 4px #fffc;
}

.btn.btn-primary > a:hover {
  color: #fff;
}

.btn.btn-primary:disabled {
  background: #ddd;
  border: 1px solid #ddd;
  color: #7d7d7d;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.btn-primary > a:disabled {
  color: #7d7d7d;
}

.btn.btn-secondary {
  background: #fff;
  border: 1px solid #d72f2f;
  color: #d72f2f;
}

.btn.btn-secondary > a {
  color: #d72f2f;
}

.btn.btn-secondary:hover {
  background: #d72f2f19;
  border: 1px solid #d72f2f;
  color: #d72f2f;
}

.btn.btn-secondary > a:hover {
  color: #d72f2f;
}

/* Form Elements */
.input-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.input {
  font-size: 16px;
  font-family: var(--font-family-primary);
  height: 60px;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  transform:none;
}

.input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

/* Link Styles */
.link {
  font-size: 16px;
  font-family: var(--font-family-primary);
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link:hover,
.link:focus {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.link--underlined {
  text-decoration: underline;
}




/* Responsive Design */
@media (max-width: 768px) {
  .btn {
    height: 50px;
    font-size: 16px;
    min-width: 160px;
  }
  
  .input {
    height: 50px;
    font-size: 15px;
  }
  
  .label {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .btn {
    height: 45px;
    font-size: 14px;
    min-width: 140px;
  }
  
  .input {
    height: 45px;
    font-size: 14px;
  }
  
  .label {
    font-size: 14px;
  }
}

@media screen and (max-width: 450px) {
  .btn.btn.btn-primary {
    height: 45px;
    font-size: 14px;
  }
}

@media screen and (max-width: 430px) {
  .btn {
    height: 50px;
    font-size: 15px;
  }
  .input[type="text"],
  .input[type="password"] {
    height: 50px;
    font-size: 15px;
  }
}

@media screen and (max-width: 380px) {
  .btn {
    height: 50px;
    font-size: 14px;
  }
}