
/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

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

.add-page .contact-button {
    position: fixed;
    left: 0;
    top: 70%;
    transform: translateY(-50%);
    background: #2f3e68e0;
    color: white;
    padding: 10px 5px;
    border: none;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-page .contact-button:hover {
    box-shadow: 0 5px 20px rgb(47, 55, 104);
    padding-left: 20px;
}

.add-page .contact-button:active {
    transform: translateY(-50%) translateX(1px);
}

.add-page .form-panel {
    position: fixed;
    left: -400px;
    top: 0px;
    width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #2f3e68e0 0%, #1e3a8a 100%);
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.add-page .form-panel.active {
    left: 0;
}

.add-page .form-header {
    color: white;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.add-page .form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(180, 197, 255);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.add-page .form-header p {
    font-size: 14px;
    opacity: 0.9;
}

.add-page .form-group {
    margin-bottom: 20px;
}

.add-page .form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.add-page .form-group input,
.add-page .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.add-page .form-group input:focus,
.add-page .form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.add-page .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.add-page .submit-btn {
    background: #ffffff;
    color: #1e3a8a;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-page .submit-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-page .close-btn {
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-page .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Overlay */
.add-page .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.add-page .overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {

    .add-page .form-panel {
        width: 100%;
        left: -100%;
    }
    
    .add-page .form-panel.active {
        left: 0;
    }
    
    .add-page .contact-button {
        left: 0;
        padding: 12px 6px;
        font-size: 12px;
        height: 100px;
    }

}