/* ============================================
   MODERN PROTECT NUMBER - FACEBOOK THEME
   ============================================ */

/* CSS Variables for Easy Customization */
:root {
  --primary: #1877f2;
  --primary-dark: #166fe5;
  --primary-light: #3578e5;
  --success: #42b72a;
  --success-dark: #36a420;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --text: #1c1e21;
  --text-light: #65676b;
  --border: #e4e6eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADING
   ============================================ */
h1 {
  color: var(--text);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

/* ============================================
   BUTTONS - Modern & Interactive
   ============================================ */
.btn {
  border: none;
  border-radius: 24px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-success:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ============================================
   FORM INPUTS - Modern Design
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

/* Input Group - Fixed for Desktop and Mobile */
.input-group {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.input-group:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Input Group Prepend - Country Code */
.input-group-prepend {
  display: flex;
  margin-right: 0;
  flex-shrink: 0;
}

#country_code_div {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  border: none !important;
  border-right: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  min-width: fit-content;
  letter-spacing: 1px;
  font-size: 1rem;
}

#country_code {
  margin-right: 0.5rem;
  display: inline-block;
}

/* Form Control - Main Input */
.form-control {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--border) !important;
  border-left: none !important;
  border-right: 2px solid var(--border) !important;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  border-left: none !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
  z-index: 1;
}

#mobile {
  font-weight: 500;
  letter-spacing: 2px;
}

#mobile::placeholder {
  color: var(--text-light);
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* ============================================
   ALERTS - Modern Styling
   ============================================ */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.alert.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white;
  box-shadow: var(--shadow-md);
}

/* ============================================
   SPINNER
   ============================================ */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  border-color: var(--primary);
  border-right-color: transparent;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.fs20 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.fs15 {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* ============================================
   BOOTSTRAP INFO COLOR OVERRIDE - Facebook Blue
   ============================================ */
.bg-info,
.alert.bg-info {
  background-color: var(--primary) !important;
  color: white;
}

.border-info {
  border-color: var(--primary) !important;
}

.text-info {
  color: var(--primary) !important;
}

.btn-info {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

.btn-info:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: white !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --radius: 14px;
    --radius-lg: 18px;
  }

  h1 {
    font-size: 2rem;
  }

  .fs20 {
    font-size: 0.95rem;
  }

  .fs15 {
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }

  /* Mobile Input Group - Keep horizontal but compact */
  .input-group {
    flex-direction: row;
    border-radius: var(--radius-lg);
  }

  .input-group-prepend {
    width: auto;
    margin-right: 0;
    flex-shrink: 0;
  }

  #country_code_div {
    width: auto !important;
    min-width: 70px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    border-right: none !important;
    padding: 0.75rem 0.875rem !important;
    background: var(--primary) !important;
    font-size: 0.9rem;
  }

  #country_code_div.input-group-text {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    border-right: none !important;
  }

  .input-group .form-control {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--border) !important;
    border-left: none !important;
    border-right: 2px solid var(--border) !important;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .input-group .form-control:focus {
    border-left: none !important;
    border-right: 2px solid var(--primary) !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Remove default Bootstrap card borders */
.card {
  border: none;
}

/* Override Bootstrap input-group styles */
.input-group-text {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Specific override for country code div */
#country_code_div.input-group-text {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.875rem 1.25rem !important;
  border: none !important;
  border-right: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
}

.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Fix for Bootstrap's default input-group border */
.input-group > .input-group-prepend > .input-group-text {
  border-right: none !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
