/* LaJolie Luxury New Theme - Inspired by Canva Template */

/* Root Variables */
:root {
  --forest: #1a3529;
  --forest-light: #2a4a35;
  --forest-dark: #0f1f15;
  --gold: #d4af37;
  --gold-light: #e6c966;
  --gold-dark: #b8941f;
  --cream: #f8f6f0;
  --cream-dark: #e8e2d5;
  --shadow-luxury: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--forest);
  color: var(--cream);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

select:invalid { color: #9ca3af; }
option[disabled][hidden] { display: none; }
.hidden { display: none !important; }

/* Botanical Background Pattern */
.botanical-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, var(--forest-light) 100%);
  z-index: -2;
}

.botanical-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='floral' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20,50 Q30,30 40,50 Q50,70 60,50 Q70,30 80,50' stroke='%23d4af37' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='50' cy='50' r='1' fill='%23d4af37' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23floral)'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: -1;
}

/* Main Container */
.new-container {
  min-height: 100vh;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Header Section */
.new-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

/* CSS-drawn Logo */
.logo-artistry {
  position: relative;
  margin-bottom: 1rem;
}

.logo-circle {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  position: relative;
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 
    0 0 20px rgba(212, 175, 55, 0.3),
    inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.logo-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  animation: logoRotate 20s linear infinite;
}

@keyframes logoRotate {
  to { transform: rotate(360deg); }
}

.logo-image {
  width: 115%;
  height: 115%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transform: scale(1.15);
}

/* Brand Typography */
.brand-text {
  margin-top: 2rem;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.elegant-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-ornament {
  color: var(--gold);
  font-size: 1.2rem;
}

.brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.golden-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* Form Container */
.new-form-container {
  width: 100%;
  max-width: 500px;
  background: rgba(20, 40, 28, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-luxury);
  position: relative;
}

.new-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* Form Header */
.form-header-elegant {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

/* Crown Ornament */
.crown-ornament {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.crown-svg {
  width: 120px;
  height: auto;
  max-height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
  margin-bottom: 0.75rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 1.625rem;
  padding: 0.9rem 0;
}

.form-section:not(:last-child) {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.125rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 1px;
}

/* Form Groups */
.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.new-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cream-dark);
  letter-spacing: 0.5px;
}

.label-accent {
  color: var(--gold);
  font-weight: 600;
}

/* Input Styles */
.new-input,
.new-select,
.new-textarea {
  width: 100%;
  padding: 1.125rem 1.5rem;
  background: rgba(30, 60, 45, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.new-input::placeholder,
.new-textarea::placeholder {
  color: rgba(248, 246, 240, 0.4);
  font-style: italic;
  font-size: 0.9rem;
}

.new-input:focus,
.new-select:focus,
.new-textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(30, 60, 45, 0.5);
  box-shadow: 
    0 0 0 3px rgba(212, 175, 55, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.new-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

.new-select:invalid {
  color: rgba(248, 246, 240, 0.5);
}

/* Service Details */
.service-details {
  background: rgba(20, 40, 28, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
  backdrop-filter: blur(5px);
}

/* Pricing Section */
.new-pricing {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  backdrop-filter: blur(5px);
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
}

.pricing-ornament {
  color: var(--gold);
  font-size: 0.9rem;
}

.pricing-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-label {
  color: var(--cream-dark);
  font-size: 0.9rem;
}

.pricing-value {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}

/* Submit Button */
.new-button {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--forest-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1.375rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.new-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.new-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxury);
}

.new-button:active {
  transform: translateY(0);
}

.new-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.button-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.button-crown-svg {
  width: 60px;
  height: auto;
  max-height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.button-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elegant-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Message Display */
.new-message {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.new-message:not(:empty) {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

/* Bottom Decoration */
.bottom-decoration {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.bottom-decoration .elegant-divider {
  opacity: 0.7;
  transform: scale(0.9);
}

/* Tooltip System */
.tooltip {
  position: relative;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 10;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--forest-dark);
  color: var(--cream);
  text-align: center;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--gold);
}

.tooltip.invalid .tooltip-text {
  visibility: visible;
  opacity: 1;
  background: #dc2626;
  border-color: #ef4444;
}

.tooltip.invalid .tooltip-text::after {
  border-top-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-container {
    padding: 1rem 0.5rem;
  }
  
  .new-header {
    margin-bottom: 1.25rem;
  }
  
  .logo-circle {
    width: 130px;
    height: 130px;
  }
  
  .brand-subtitle {
    font-size: 1rem;
  }
  
  .new-form-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .section-header {
    font-size: 0.96rem;
    margin-bottom: 1rem;
  }
  
  .new-input,
  .new-select,
  .new-textarea {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .new-button {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .crown-svg {
    width: 100px;
    max-height: 28px;
  }
  
  .button-crown-svg {
    width: 50px;
    max-height: 16px;
  }

  .form-section {
    margin-bottom: 1.4rem;
    padding: 0.75rem 0;
  }

  .form-group {
    margin-bottom: 0.875rem;
  }

  .new-pricing {
    padding: 1.25rem;
    margin: 1.25rem 0;
  }
}

@media (max-width: 480px) {
  .new-form-container {
    padding: 1.5rem 1rem;
    border-radius: 15px;
    margin: 0 0.5rem;
  }
  
  .form-title {
    font-size: 1.4rem;
  }
  
  .elegant-divider {
    gap: 0.5rem;
  }
  
  .divider-line {
    width: 40px;
  }

  .logo-circle {
    width: 110px;
    height: 110px;
  }

  .crown-svg {
    width: 85px;
    max-height: 24px;
  }

  .section-header {
    font-size: 0.91rem;
    margin-bottom: 0.875rem;
  }

  .new-input,
  .new-select,
  .new-textarea {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .new-button {
    padding: 1.125rem 1.25rem;
    font-size: 0.9rem;
  }

  .form-section {
    margin-bottom: 1.2rem;
    padding: 0.6rem 0;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .new-pricing {
    padding: 1rem;
    margin: 1rem 0;
  }

  .pricing-details {
    gap: 0.75rem;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .new-button:hover {
    transform: translateY(-1px);
  }
  
  .new-button:active {
    transform: scale(0.98);
  }

  .new-input:focus,
  .new-select:focus,
  .new-textarea:focus {
    transform: none;
  }
}

/* Animation for smooth appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-container {
  animation: fadeInUp 0.8s ease-out;
}