/* Clodura Startup Form - Updated Styles (assets/css/startup-form.css) */

/* Container */
.cld-form-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Form */
.cld-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  border: 1px solid #d5d5d5;
  border-top: 7px solid #ff5500;
  box-shadow: 0px 7px 8px 0px #c2c2c240;
}

/* Row Layout */
.cld-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

/* Column widths */
.cld-col {
  flex: 1;
  min-width: 280px;
}

.cld-col-full {
  flex: 1;
  width: 100%;
}

/* Labels */
.cld-label {
  /* display: block; */
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 16px;
  color: #1a1a1a;
  display: none;
}

.vc-form .cld-label {
  display: block;
}

/* Input Fields */
.cld-input,
.cld-select,
.cld-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
  border-radius: 5px !important;
}

.cld-input::placeholder,
.cld-textarea::placeholder {
  color: #d0d0d0;
  font-weight: 300;
}

.cld-input:focus,
.cld-select:focus,
.cld-textarea:focus {
  outline: none;
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.08);
}

.cld-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.cld-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* File Upload Styling */
.cld-file-upload-wrapper {
  position: relative;
}

.cld-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cld-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: #f5f5f5;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 15px;
  font-weight: 400;
}

.cld-file-label:hover {
  background: #ebebeb;
  border-color: #ff5722;
  color: #ff5722;
}

.cld-file-label:hover .cld-upload-icon {
  transform: translateY(-2px);
}

.cld-upload-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
  transition: transform 0.3s ease;
}

.cld-file-info {
  margin-top: 10px;
  font-size: 13px;
  color: #46b450;
}

/* Submit Button */
.cld-submit {
  width: 100%;
  background: #ff5722;
  color: #ffffff;
  border: none;
  padding: 16px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
  border-radius: 11px !important;
}

.cld-submit:hover {
  background: #e64a19;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.3);
}

.cld-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.cld-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error Messages */
.cld-error {
  color: #dc3232;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
}

/* ===== SUCCESS MESSAGE STYLES WITH ANIMATED CHECKMARK ===== */
.cld-success {
  display: none;
  margin-top: 0;
  padding: 0;
  text-align: center;
  min-height: 400px; /* Ensure good height for centered content */
}

.cld-success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 400px;
  animation: fadeIn 0.5s ease;
}

/* Animated Checkmark */
.cld-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.cld-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #46b450;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cld-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #46b450;
  stroke-width: 3;
  stroke-linecap: round;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cld-success-text {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  animation: fadeIn 0.5s ease 0.4s both;
}

.cld-redirect-text {
  font-size: 14px;
  color: #718096;
  animation: fadeIn 0.5s ease 0.6s both;
}

/* reCAPTCHA Container */
.g-recaptcha {
  margin: 0;
}

/* Loading State */
.cld-form.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cld-form {
    padding: 24px;
  }

  .cld-row {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }

  .cld-col {
    min-width: 100%;
  }

  .cld-input,
  .cld-select,
  .cld-textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .cld-submit {
    padding: 14px 20px;
    font-size: 15px;
  }

  .cld-success {
    min-height: 300px;
  }

  .cld-success-content {
    padding: 60px 20px;
    min-height: 300px;
  }

  .cld-checkmark {
    width: 60px;
    height: 60px;
  }

  .cld-success-text {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cld-form-container {
    padding: 0 12px;
    margin: 20px auto;
  }

  .cld-form {
    padding: 20px;
    border-radius: 12px;
  }

  .cld-success {
    min-height: 280px;
  }

  .cld-success-content {
    padding: 50px 20px;
    min-height: 280px;
  }

  .cld-checkmark {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .cld-success-text {
    font-size: 16px;
  }

  .cld-redirect-text {
    font-size: 13px;
  }
}

/* Print Styles */
@media print {
  .cld-form {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .cld-submit {
    display: none;
  }
}


/* Phone number hint */
.cld-phone-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* .cld-input:invalid {
    border-color: #dc3232;
}

.cld-input:valid:not(:placeholder-shown) {
    border-color: #46b450;
}

.cld-input.error {
    border-color: #dc3232;
} */

/* ================================================================================
   FUTURE: Uncomment to style intl-tel-input (country code with flags)
   ================================================================================ */

/*
.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 2;
}

.iti__country-list {
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
}

.iti__country {
    padding: 8px 12px;
}

.iti__country:hover {
    background-color: #f5f5f5;
}

.iti__selected-flag {
    padding: 0 0 0 12px;
}

.iti__flag-box {
    display: inline-block;
}

.cld-col-full .iti__tel-input {
    width: 100%;
    padding-left: 52px;
}

.cld-col .iti__tel-input {
    width: 100%;
    padding-left: 52px;
}
*/

/* ================================================================================ */

/* Phone Code + Number Layout */
.cld-phone-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cld-phone-code {
    flex: 0 0 140px;
    min-width: 140px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cld-phone-code:focus {
    border-color: #FF5722;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.cld-phone-number {
    flex: 1;
    min-width: 0;
}

.cld-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* Responsive phone layout */
@media (max-width: 768px) {
    .cld-phone-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .cld-phone-code {
        flex: 1;
        width: 100%;
        min-width: unset;
    }
}

/* Auto-selected phone code animation */
.cld-phone-code.auto-selected {
    border-color: #46b450 !important;
    background-color: #f0f9f0 !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.1);
}

/* Phone code dropdown improvements */
.cld-phone-code {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cld-phone-code option {
    padding: 8px;
    font-size: 14px;
}

.cld-phone-code:focus {
    border-color: #FF5722;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}


/* ==========================================
   INFO ICON TOOLTIP - UNIQUE ID FIELD
   ========================================== */

/* Info icon wrapper */
.info-icon-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* Info icon circle */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #d7d7d7;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    cursor: help;
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Tooltip content - hidden by default */
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    
    /* Position to the RIGHT on desktop */
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    
    /* Styling - WHITE BACKGROUND */
    background: #ffffff;
    color: #333333;
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    font-weight: normal;
    text-align: left;
    
    /* Size */
    width: 420px;
    max-width: 90vw;
    
    /* Box Shadow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* Border for definition */
    border: 1px solid #e0e0e0;
    
    /* Animation */
    transition: all 0.3s ease;
    
    /* Layer */
    z-index: 1000;
    
    /* Prevent text selection issues */
    pointer-events: none;
}

/* Tooltip arrow - LEFT side pointing to icon (vertical center) */
.tooltip-content::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-right-color: #e0e0e0;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #ffffff;
    z-index: 1;
}

/* Show tooltip on hover */
.info-icon-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Tooltip text formatting */
.tooltip-content strong {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-top: 12px;
}

.tooltip-content strong:first-child {
    margin-top: 0;
}

.tooltip-content br + br {
    display: block;
    content: "";
    margin-top: 4px;
}

/* ==========================================
   RESPONSIVE - MOBILE & TABLET
   ========================================== */

/* Tablet - show on top */
@media (max-width: 1024px) {
    .tooltip-content {
        /* Position ABOVE on tablet */
        left: 50%;
        top: auto;
        bottom: calc(100% + 15px);
        transform: translateX(-50%) translateY(10px);
        width: 380px;
    }
    
    .info-icon-tooltip:hover .tooltip-content {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Arrow border (outer) */
    .tooltip-content::before {
        right: auto;
        left: 50%;
        top: 100%;
        bottom: auto;
        transform: translateX(-50%);
        border: 9px solid transparent;
        border-top-color: #e0e0e0;
        border-right-color: transparent;
    }
    
    /* Arrow fill (inner) */
    .tooltip-content::after {
        right: auto;
        left: 50%;
        top: 100%;
        bottom: auto;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: #ffffff;
        border-right-color: transparent;
    }
}

/* Mobile - show on top with smaller width */
@media (max-width: 768px) {
    .tooltip-content {
        width: 320px;
        font-size: 12px;
        padding: 16px 18px;
    }
    
    .tooltip-content strong {
        font-size: 13px;
        margin-top: 10px;
    }
}

/* Very small screens - even more compact */
@media (max-width: 480px) {
    .tooltip-content {
        width: 290px;
        font-size: 11px;
        padding: 14px 16px;
    }
    
    .tooltip-content strong {
        font-size: 12px;
        margin-top: 8px;
    }
}

/* Fallback for screens that might cut off tooltip */
@media (max-width: 400px) {
    .tooltip-content {
        width: 270px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
    }
    
    .info-icon-tooltip:hover .tooltip-content {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   SLACK COMMUNITY FORM STYLES
   ========================================== */

.slack-form .cld-slack-form {
  margin: 0 auto;
   background: white;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.slack-form .cld-row {
  margin-bottom: 0;
}

.slack-form .cld-input {
  padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #C0C0C0;
    border-radius: 10px !important;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.slack-form .cld-input::placeholder {
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #888888;
}

.slack-form .cld-input:focus {
  border-color: #FF5500;
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1);
}

/* Checkbox Row */
.slack-form .cld-checkbox-row {
  margin: 20px 0px;
}

.slack-form .cld-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.slack-form .cld-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #FF5500;
  cursor: pointer;
  flex-shrink: 0;
}

.slack-form .cld-checkbox-text {
  font-weight: 400;
  font-size: 17px;
  line-height: 120%;
  color: #333333;
}

/* Submit Button for Slack Form */
.slack-form .cld-slack-submit {
  background: #FF5500;
    color: #ffffff;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 21px;
    line-height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.slack-form .cld-slack-submit:hover {
  background: #E64A19;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px 0px #000000;
}

.slack-form .cld-slack-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.slack-form .cld-slack-submit:disabled {
  background: #cccccc;
  border-color: #999999;
  cursor: not-allowed;
}

/* Slack checkmark colors */
.slack-form .cld-checkmark-circle {
  stroke: #FF5500;
}

.slack-form .cld-checkmark-check {
  stroke: #FF5500;
}

/* Error styling for Slack form */
.slack-form .cld-error {
  color: #dc3232;
  margin-top: -12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.slack-form #form-error-slack {
  margin-top: 16px;
  padding: 12px;
  background: #fff5f5;
  border: 1px solid #dc3232;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 850px) {
  .slack-form .cld-slack-form {
    max-width: 100%;
    margin: 0 15px;
    padding: 25px 30px;
  }
}

