/* --- extracted style block 1 from Pages/New_projects/add_property.php --- */
   :root {
      --primary: #c62828;
      --primary-dark: #8e0000;
      --primary-light: #ff5f52;
      --secondary: #1565c0;
      --success: #2e7d32;
      --muted: #f1f4f6;
      --card-bg: #eef0f3;
      --dark-text: #333;
      --light-text: #666;
      --white: #fff;
      --shadow: 0 4px 12px rgba(0,0,0,0.08);
      --transition: all 0.3s ease;
    }
    
    * {
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; 
      background: #f8f9fa;
      color: var(--dark-text);
      line-height: 1.6;
      margin: 0;
      padding: 0;
    }
    
    .form-container {
      max-width: 1200px;
      margin: auto;
      background: var(--white);
      box-shadow: var(--shadow);
      border-radius: 12px;
      overflow: hidden;
    }
    
    .site-header {
      background: var(--white);
      border-bottom: 1px solid #eee;
      padding: 16px 24px;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .brand {
      font-weight: 700;
      color: var(--primary);
      letter-spacing: 1px;
      font-size: 1.4rem;
    }
    
    .progress-container {
      padding: 24px;
      background: var(--muted);
      border-radius: 0 0 12px 12px;
    }
    
    .progress-steps {
      display: flex;
      justify-content: space-between;
      position: relative;
      margin-bottom: 30px;
    }
    
    .progress-steps::before {
      content: '';
      position: absolute;
      top: 20px;
      left: 0;
      width: 100%;
      height: 4px;
      background: #ddd;
      z-index: 1;
    }
    
    .progress-bar {
      position: absolute;
      top: 20px;
      left: 0;
      width: 0%;
      height: 4px;
      background: var(--primary);
      z-index: 2;
      transition: var(--transition);
    }
    
    .step {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: white;
      border: 3px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #777;
      position: relative;
      z-index: 3;
      transition: var(--transition);
    }
    
    .step.active {
      border-color: var(--primary);
      background: var(--primary);
      color: white;
    }
    
    .step.completed {
      border-color: var(--primary);
      background: var(--primary);
      color: white;
    }
    
    .step-label {
      position: absolute;
      top: 50px;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
      font-size: 0.8rem;
      color: var(--light-text);
      font-weight: 600;
    }
    
    .form-content {
      padding: 24px;
    }
    
    .form-step {
      display: none;
      animation: fadeIn 0.5s ease;
    }
    
    .form-step.active {
      display: block;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .form-title {
      font-weight: 800;
      color: var(--dark-text);
      margin-bottom: 24px;
      font-size: 1.5rem;
      position: relative;
      padding-bottom: 12px;
    }
    
    .form-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 50px;
      height: 4px;
      background: var(--primary);
      border-radius: 2px;
    }
    
  .form-card {
      background: var(--white);
      border-radius: 12px;
      padding: 24px;
      box-shadow: var(--shadow);
      margin-bottom: 24px;
      border: 1px solid #eee;
    }
    

    .card-title {
      font-weight: 700;
      color: var(--dark-text);
      margin-bottom: 16px;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .form-label {
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--dark-text);
      display: block;
    }
    
    
    /* Gallery Upload Styles */
    .gallery-upload-area {
      border: 2px dashed #dee2e6;
      border-radius: 10px;
      padding: 2rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
      background-color: #f8f9fa;
    }

    .gallery-upload-area:hover {
      border-color: #0d6efd;
      background-color: #e7f1ff;
    }

    .gallery-upload-area i {
      color: #6c757d;
      margin-bottom: 10px;
    }

    .gallery-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 15px;
    }

    .gallery-item {
      position: relative;
      width: 120px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid #dee2e6;
    }
    
    .gallery-item.compressed {
      border: 2px solid #198754;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .gallery-item .remove-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(0,0,0,0.7);
      color: white;
      border: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 12px;
    }
    
    .gallery-item-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 4px 6px;
      font-size: 11px;
      border-bottom-left-radius: 6px;
      border-bottom-right-radius: 6px;
    }
    
    .compression-badge {
      position: absolute;
      top: 5px;
      left: 5px;
      background: #198754;
      color: white;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: bold;
    }

    .upload-preview {
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 15px;
      text-align: center;
      margin-bottom: 10px;
      min-height: 100px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-color: #f8f9fa;
    }

    .upload-preview i {
      font-size: 2rem;
      color: #6c757d;
      margin-bottom: 10px;
    }

    .upload-preview span {
      color: #6c757d;
      font-size: 0.9rem;
    }

    .image-upload-container, .brochure-upload-container {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .video-preview {
      display: none;
      margin-top: 10px;
      padding: 10px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #dee2e6;
    }

    .video-preview.show {
      display: block;
    }

    .video-thumbnail {
      width: 100%;
      max-width: 320px;
      margin: 10px auto;
      display: block;
      border-radius: 8px;
    }



    .icon-box {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(198, 40, 40, 0.1);
      border-radius: 8px;
      color: var(--primary);
      margin-right: 12px;
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-label {
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #495057;
    }

    .form-label.required::after {
      content: " *";
      color: #dc3545;
    }

    .form-control, .form-select {
      border: 1px solid #ced4da;
      border-radius: 8px;
      padding: 0.75rem;
      transition: all 0.3s;
    }

    .form-control:focus, .form-select:focus {
      border-color: #86b7fe;
      box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .form-icon-wrapper {
      position: relative;
    }

    .validation-error {
      color: #dc3545;
      font-size: 0.875rem;
      margin-top: 0.25rem;
      display: none;
    }

    .is-invalid {
      border-color: #dc3545 !important;
    }

    .is-invalid:focus {
      box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    }
    
    /* Amount input styling */
    .amount-input-group {
      position: relative;
    }
    
    .amount-input-group .form-control {
      padding-left: 2.5rem;
    }
    
    .amount-input-group .input-group-text {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      background: transparent;
      border: none;
      z-index: 4;
      font-weight: bold;
    }
    
    /* Words display styling */
    .words-display {
      font-size: 12px;
      color: #198754;
      margin-top: 4px;
      font-weight: 500;
      min-height: 16px;
      background: #f8f9fa;
      padding: 4px 8px;
      border-radius: 4px;
      border-left: 3px solid #198754;
    }
    
    /* Developer status styling */
    .developer-status {
      font-size: 12px;
      margin-top: 4px;
      padding: 4px 8px;
      border-radius: 4px;
      display: none;
    }
    
    .developer-status.existing {
      background-color: #d1e7dd;
      color: #0f5132;
      border-left: 3px solid #198754;
    }
    
    .developer-status.new {
      background-color: #fff3cd;
      color: #856404;
      border-left: 3px solid #ffc107;
    }
    
    /* Unit type card styling */
    .unit-type-card {
      background: white;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
      border: 1px solid #dee2e6;
      position: relative;
      transition: all 0.3s;
    }
    
    .unit-type-card:hover {
      border-color: #86b7fe;
      box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
    }
    
    .unit-type-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px dashed #dee2e6;
    }
    
    .unit-type-title {
      font-weight: 600;
      color: #2c3e50;
      font-size: 1.1rem;
    }
    
    .unit-type-badge {
      background: #0d6efd;
      color: white;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 0.8rem;
    }

    /* Navigation Buttons */
    .form-navigation {
      display: flex;
      justify-content: space-between;
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid #dee2e6;
    }

    .btn-prev, .btn-next, .btn-submit {
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.3s;
      border: none;
    }

    .btn-prev {
      background: #6c757d;
      color: white;
    }

    .btn-prev:hover:not(:disabled) {
      background: #5a6268;
      transform: translateX(-2px);
    }

    .btn-prev:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-next {
      background: #0d6efd;
      color: white;
    }

    .btn-next:hover {
      background: #0b5ed7;
      transform: translateX(2px);
    }

    .btn-submit {
      background: #198754;
      color: white;
    }

    .btn-submit:hover:not(:disabled) {
      background: #157347;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
    }

    .btn-submit:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }

    .loading-spinner {
      display: none;
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 50%;
      border-top-color: white;
      animation: spin 1s linear infinite;
    }

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

    /* Toast */
    .toast-container {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1050;
      min-width: 300px;
    }

    .toast {
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      overflow: hidden;
      animation: slideIn 0.3s;
    }

    @keyframes slideIn {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .toast-body {
      padding: 1rem;
      display: flex;
      align-items: center;
    }

    .toast.success {
      border-left: 4px solid #198754;
    }

    .toast.error {
      border-left: 4px solid #dc3545;
    }
    
    .toast.warning {
      border-left: 4px solid #ffc107;
    }

    /* Amenities */
    .amenity-category {
      margin-bottom: 1.5rem;
      padding: 1rem;
      background: white;
      border-radius: 8px;
      border: 1px solid #dee2e6;
    }

    .amenity-category h6 {
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #dee2e6;
    }

    .amenity-item {
      padding: 0.5rem 0;
    }

    .amenity-item .form-check-input:checked {
      background-color: #0d6efd;
      border-color: #0d6efd;
    }

    /* Compression Progress Indicator */
    .compression-progress {
      position: fixed;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.9);
      color: white;
      padding: 12px 15px;
      border-radius: 8px;
      z-index: 9999;
      font-size: 14px;
      display: flex;
      align-items: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      max-width: 300px;
    }
    
    /* Size comparison styling */
    .size-comparison {
      font-size: 12px;
      color: #666;
    }
    
    .size-reduction {
      color: #198754;
      font-weight: bold;
    }
    
    /* Preview border for compressed images */
    .border-success {
      border: 2px solid #198754 !important;
    }

    /* Upload Status Modal */
    .upload-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .upload-modal.active {
        display: flex;
        animation: fadeIn 0.3s;
    }

    .upload-modal-content {
        background: var(--white);
        border-radius: 20px;
        padding: 3rem;
        width: 90%;
        max-width: 500px;
        text-align: center;
        color: var(--dark-text);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
        border-top: 6px solid var(--primary);
    }

    .upload-header {
        margin-bottom: 2rem;
    }

    .upload-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
        position: relative;
    }

    .upload-icon-circle {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(198, 40, 40, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        animation: pulse 2s infinite;
    }

    .upload-icon-circle i {
        font-size: 2.5rem;
        color: var(--primary);
    }

    .upload-icon-circle::before {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        border-radius: 50%;
        border: 2px solid rgba(198, 40, 40, 0.2);
        animation: ripple 1.5s infinite;
    }

    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }

    @keyframes ripple {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    .upload-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--dark-text);
    }

    .upload-subtitle {
        color: var(--light-text);
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Progress Bar */
    .upload-progress {
        background: var(--muted, #f1f4f6);
        border-radius: 10px;
        height: 10px;
        margin: 2rem 0;
        overflow: hidden;
    }

    .upload-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--primary-light));
        border-radius: 10px;
        width: 0%;
        transition: width 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .upload-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.4), 
            transparent);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    .upload-stats {
        display: flex;
        justify-content: space-between;
        color: var(--light-text);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .upload-details {
        background: var(--muted, #f1f4f6);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1.5rem;
        max-height: 200px;
        overflow-y: auto;
    }

    .upload-detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .upload-detail-item:last-child {
        border-bottom: none;
    }

    .upload-detail-name {
        color: var(--dark-text);
        font-size: 0.9rem;
    }

    .upload-detail-status {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-weight: 600;
    }

    .upload-detail-status.pending {
        background: rgba(255, 193, 7, 0.15);
        color: #b8860b;
    }

    .upload-detail-status.compressing {
        background: rgba(198, 40, 40, 0.1);
        color: var(--primary);
    }

    .upload-detail-status.uploading {
        background: rgba(198, 40, 40, 0.1);
        color: var(--primary);
    }

    .upload-detail-status.success {
        background: rgba(46, 125, 50, 0.15);
        color: var(--success);
    }

    /* Success Modal */
    .success-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(6px);
    }

    .success-modal.active {
        display: flex;
        animation: fadeIn 0.3s;
    }

    .success-modal-content {
        background: var(--white);
        border-radius: 25px;
        padding: 4rem 3rem;
        width: 90%;
        max-width: 600px;
        text-align: center;
        color: var(--dark-text);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
        border-top: 6px solid var(--primary);
        position: relative;
        overflow: hidden;
    }

    .success-modal-content::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(198, 40, 40, 0.05) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .success-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto 2rem;
        position: relative;
        z-index: 1;
    }

    .success-icon-circle {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(46, 125, 50, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: successPulse 2s infinite;
    }

    @keyframes successPulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.25); }
        70% { transform: scale(1.05); box-shadow: 0 0 0 30px rgba(46, 125, 50, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
    }

    .success-icon-circle i {
        font-size: 4rem;
        color: var(--success);
    }

    .success-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
        color: var(--dark-text);
    }

    .success-message {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: var(--light-text);
        position: relative;
        z-index: 1;
    }

    .success-project-id {
        background: var(--muted, #f1f4f6);
        padding: 1rem;
        border-radius: 10px;
        margin: 2rem 0;
        font-family: monospace;
        font-size: 1.1rem;
        position: relative;
        z-index: 1;
        color: var(--dark-text);
    }

    .success-celebration {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    .confetti {
        position: absolute;
        width: 10px;
        height: 10px;
        background: var(--primary);
        animation: confettiFall 5s linear infinite;
    }

    @keyframes confettiFall {
        0% {
            transform: translateY(-100px) rotate(0deg);
            opacity: 1;
        }
        100% {
            transform: translateY(100vh) rotate(720deg);
            opacity: 0;
        }
    }

    /* Action buttons on the success modal (previously only defined inside a
       mobile media query, so on desktop these rendered as unstyled default
       buttons - this is the missing base rule). */
    .success-actions {
        position: relative;
        z-index: 1;
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    .success-btn {
        padding: 0.85rem 1.75rem;
        border-radius: 30px;
        font-weight: 700;
        font-size: 0.95rem;
        text-decoration: none;
        border: 2px solid var(--primary);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: var(--transition, all 0.3s ease);
        min-width: 180px;
        justify-content: center;
    }

    .success-btn-dashboard {
        background: var(--primary);
        color: var(--white);
    }

    .success-btn-dashboard:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
    }

    .success-btn-another {
        background: var(--white);
        color: var(--primary);
    }

    .success-btn-another:hover {
        background: rgba(198, 40, 40, 0.08);
        transform: translateY(-2px);
    }

    /* Close button */
    .close-modal-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--muted, #f1f4f6);
        border: none;
        color: var(--dark-text);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
        z-index: 2;
    }

    .close-modal-btn:hover {
        background: rgba(198, 40, 40, 0.1);
        color: var(--primary);
        transform: rotate(90deg);
    }

    /* Responsive */
    @media (max-width: 768px) {
      
      .gallery-item {
        width: 100px;
        height: 100px;
      }
      
      .form-navigation {
        flex-direction: column;
        gap: 1rem;
      }
      
      .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
      }
      
      .compression-progress {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
      }
      
      .unit-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
      
      .upload-modal-content,
      .success-modal-content {
          padding: 2rem 1.5rem;
          margin: 1rem;
      }
      
      .success-actions {
          flex-direction: column;
          gap: 1rem;
      }
      
      .success-btn {
          min-width: auto;
          width: 100%;
      }
      
      .success-title {
          font-size: 2rem;
      }
    }
  
