/* =============================================================
   CloudyWave Footer Plugin — footer.css
   Extracted from the original inline <style> blocks.
   Do NOT edit the markup; change visuals here instead.
   ============================================================= */

/* -----------------------------------------------------------
   BUTTON HOVER STYLES
   ----------------------------------------------------------- */
.elementor-widget-premium-addon-modal-box .premium-button-style1:before {
    background: #7A7A7A;
}

.premium-button-style1-right:before {
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.premium-button-style1:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition-property: transform;
    transition-duration: .15s;
    transition-timing-function: ease-out;
}

.premium-button-style1:hover::before {
    transform: scaleX(1);
}

/* -----------------------------------------------------------
   MODAL / POPUP STYLES
   ----------------------------------------------------------- */
:root {
    --cw-primary-color: #007bff;
    --cw-dark-blue:     #0d244f;
    --cw-text-color:    #333;
    --cw-text-light:    #6c757d;
    --cw-bg-light:      #f8f9fa;
    --cw-border-color:  #dee2e6;
    --cw-white-color:   #ffffff;
    --cw-error-color:   #dc3545;
    --cw-success-color: #28a745;
    --cw-shadow:        0 4px 15px rgba(0, 0, 0, 0.08);
    --cw-font-family:   'Inter', sans-serif;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(13, 36, 79, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--cw-white-color);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--cw-dark-blue);
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--cw-text-light);
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
    color: var(--cw-dark-blue);
    transform: rotate(90deg);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--cw-font-family);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cw-primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-group.checkbox-group input {
    width: auto;
    margin-right: 12px;
    height: 1.2em;
    width: 1.2em;
}

.form-group.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cw-text-light);
}

.submit-btn {
    width: 100%;
    background-color: #111;
    color: var(--cw-white-color);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #333;
}

#success-message-cd {
    display: none;
    text-align: center;
    padding: 20px;
}

.error-message {
    color: var(--cw-error-color);
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group input.invalid {
    border-color: var(--cw-error-color);
}

/* -----------------------------------------------------------
   MOBILE FIXES
   ----------------------------------------------------------- */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-container {
        padding: 25px;
        overflow: auto;
        height: 90%;
    }

    .modal-header {
        margin-bottom: 20px;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }
}

/* -----------------------------------------------------------
   CW DEMO / BOOK-A-CALL MODAL  (cwOverlay)
   ----------------------------------------------------------- */
.cw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,45,0.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cw-overlay.is-open { opacity: 1; visibility: visible; }

.cw-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 1000px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10,20,45,0.28);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.cw-overlay.is-open .cw-modal { transform: translateY(0) scale(1); }

.cw-modal__header {
  background: linear-gradient(135deg, #0d2f6e 0%, #1a73e8 100%);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cw-modal__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cw-modal__title-wrap { flex: 1; }
.cw-modal__title {
  font-size: 16px; font-weight: 600;
  color: #fff; line-height: 1.2;
}
.cw-modal__subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
.cw-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff;
  font-size: 17px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.cw-modal__close:hover { background: rgba(255,255,255,0.28); }

.cw-modal__body {
  flex: 1; overflow-y: auto; min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.cw-modal__body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  display: block;
}
.cw-modal__loading {
  height: 640px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: #6b7280; font-size: 14px;
}
.cw-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: cw-spin 0.75s linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .cw-overlay { padding: 0; align-items: flex-end; }
  .cw-modal {
    border-radius: 20px 20px 0 0;
    max-height: 95vh; max-width: 100%;
    transform: translateY(100%);
  }
  .cw-overlay.is-open .cw-modal { transform: translateY(0); }
  .cw-modal__body iframe,
  .cw-modal__loading { height: 520px; }
}
@media (max-width: 380px) {
  .cw-modal__body iframe,
  .cw-modal__loading { height: 460px; }
}
