body {
    font-family: 'Cairo', sans-serif;
}

.voice-recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        width: 100% !important;
    max-width: none !important;
    margin: 40px auto;
    direction: rtl;
    color: #070D2D;
    font-family: 'Cairo', sans-serif;
}

.voice-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 5px;
}

.voice-icon-btn.record {
  background-color: #25D366;
}

.voice-icon-btn.stop {
  background-color: #D30C5C;
}

.voice-icon-btn.retry {
  background-color: #6c757d;
}

.voice-icon-btn.send {
  background-color: #B57F11;
}

.voice-icon-btn:hover {
  transform: scale(1.05);
}

.voice-icon-btn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}


.form-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.timer {
    font-size: 18px;
    margin: 8px 0;
    color: #070D2D;
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.form-description {
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
    text-align: center;
}


.record-button, .stop-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.record-button {
    background-color: #25D366;
}

.stop-button {
    background-color: #D30C5C;
}

.record-button:disabled,
.stop-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.status-text {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.send-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #B57F11;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

.send-button:hover {
    background-color: #070D2D;
}
.form-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.form-row .form-input {
    flex: 0 0 80%; 
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif; 
    color: #222; 
}


@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .form-input {
        flex: 1 0 100%;
    }
}

.loading-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 5px;
}

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