/* spfx-modal.css */
:root {
  --primary-blue: #0078D4; /* SharePoint Blue */
  --primary-blue-hover: #106EBE;
  --accent-orange: #FF8C00;
  --accent-orange-hover: #E67E00;
  --bg-light: #F8F9FA;
  --text-main: #323130;
  --text-muted: #605E5C;
  --white: #FFFFFF;
  --border-light: #EDEBE9;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.spfx-body {
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header & Hero */
.spfx-hero {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
  color: var(--white);
  padding: 6rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spfx-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--bg-light);
  transform: skewY(-2deg);
}

.spfx-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease-out;
}

.spfx-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.spfx-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  max-width: 900px;
  margin: 2rem auto 0;
  position: relative;
  z-index: 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeUp 1.2s ease-out;
}

.hero-image-wrapper img {
  width: 100%;
  display: block;
}

/* Common Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 3rem;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-top: 0;
  color: var(--primary-blue);
}

/* Steps */
.step-list {
  list-style: none;
  padding: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  background: var(--accent-orange);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-text h3 {
  margin: 0 0 0.5rem 0;
}

/* FAQ */
.faq-box {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-q {
  padding: 1.5rem;
  margin: 0;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-box.open .faq-a {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-box.open .faq-icon {
  transform: rotate(180deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-orange:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--white);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-light);
}

.animate-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .spfx-title { font-size: 2rem; }
  .step-item { flex-direction: column; }
  .step-num { margin-bottom: 1rem; }
}
