:root {
  --primary: #0F7A3D;
  --primary-dark: #0A5C2F;
  --bg-color: #F6F8FA;
  --card-bg: #FFFFFF;
  --text-main: #2D3748;
  --text-muted: #718096;
  --border-color: #E2E8F0;
  --border-radius: 20px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(15, 122, 61, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Hero Section */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F4F1 100%);
  padding: 25px 0 90px;
  text-align: center;
  overflow: hidden;
}

/* Header Graphics (Kuwait Towers & Flag Layout) */
.towers-wrapper {
  position: absolute;
  top: 10px;
  right: 4%;
  width: 140px;
  height: 260px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.towers-svg {
  width: 100%;
  height: 100%;
}

.flag-wrapper {
  position: absolute;
  top: 15px;
  left: 5%;
  width: 140px;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.08));
}

.kuwait-flag-svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Brand Bar */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

/* Logo Styling */
.logo-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Footer Styling & Instagram Link */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.instagram-link:hover {
  background: #e1306c; /* Instagram Accent Color */
  transform: translateY(-2px);
}

.instagram-link i {
  font-size: 18px;
}

.brand-text {
  text-align: right;
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero Badge Icon */
.hero-icon-wrapper {
  margin: 10px 0 15px;
  display: flex;
  justify-content: center;
}

.hero-icon-badge {
  width: 58px;
  height: 58px;
  background: rgba(15, 122, 61, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  color: #1A202C;
  line-height: 1.4;
  margin-bottom: 15px;
}

.main-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.hero-subnote {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Wave Divider */
.custom-shape-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.custom-shape-divider-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

/* Main Form Card */
main {
  margin-top: -40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 5;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  animation: fadeIn 0.8s ease-out;
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2D3748;
  margin-bottom: 8px;
}

.required {
  color: #E53E3E;
}

/* Inputs & Custom Wrappers */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px 12px 50px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  background-color: #FAFAFA;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.1);
}

.input-icon-btn {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  background-color: rgba(15, 122, 61, 0.08);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  pointer-events: none;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 15px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.select-wrapper input[type="text"],
.select-wrapper select {
  padding-right: 35px;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

.textarea-icon {
  bottom: auto;
  top: 4px;
  height: 40px;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* File Upload Area */
.drop-zone {
  border: 2px dashed #CBD5E0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  background-color: #FAFAFA;
  cursor: pointer;
  transition: var(--transition);
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background-color: rgba(15, 122, 61, 0.02);
}

.drop-icon {
  font-size: 30px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}

.drop-zone:hover .drop-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.drop-title {
  font-size: 14px;
  font-weight: 700;
  color: #4A5568;
  margin-bottom: 5px;
}

.drop-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.file-details {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Privacy Notice Box */
.privacy-box {
  background-color: #E6F4EA;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-size: 12px;
  color: var(--primary-dark);
  line-height: 1.5;
}

.privacy-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--primary-dark);
  color: white;
  padding: 20px 0;
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-flag {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Utilities & Responsive */
.hidden {
  display: none !important;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

@media (max-width: 768px) {
  .towers-wrapper, .flag-wrapper {
    opacity: 0.2;
    transform: scale(0.7);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px 20px;
  }

  .towers-wrapper, .flag-wrapper {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}