/* General */
html, body { 
    height: 100%;
    margin: 0;
    padding: 0;
	scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: 'Roboto', sans-serif;
    color: #ffffffcc;
    background-color: #0b131c;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), 
        url(../img/main.jpg) center center no-repeat;
    background-size: cover;
    z-index: -1;
    filter: blur(6px);
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.wrapper > * {
    position: relative;
    z-index: 1; 
    color: #ffffffcc;
}

.wrapper::before {
    content: none;
}

main.main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
}

/* Content */
.preview {
    text-align: center;
    max-width: 900px;
    margin-bottom: 5rem;
	margin-top: 200px;
}

.main { 
    margin-top: 100px;
    padding-top: 2rem;
}

.main h1 {
    font-family: 'Unbounded';
    font-weight: 700;
    font-size: clamp(2.3rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main h3 {
    font-family: 'Unbounded';
    font-weight: 500;
    font-size: clamp(1.3rem, 4vw, 2rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    height: 2.3em;
}

.main p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.p-text-slide-in { animation: TextSlideIn 0.6s ease forwards; }
.p-text-slide-out { animation: TextSlideOut 0.6s ease forwards; }

@keyframes TextSlideIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes TextSlideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Content Container */
.content-container {
    width: 100%;
    margin: 0 auto;
    margin-top: 100px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Original Style */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: currentColor !important;
    transition: all 9999s ease-in-out 0s;
    background-color: transparent !important;
    color: currentColor !important;
}

/* Model Window */
.modal-content {
    background: rgba(11, 19, 28, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffffcc;
    padding: 1rem;
}

.modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.modal-header h5 {
    font-family: 'Unbounded';
    font-weight: 600;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffffcc;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #d0b6a0;
    box-shadow: none;
    color: #ffffffcc;
}

.form-control::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

label { font-weight: 500; }

#address {
    resize: none;
    overflow-y: auto;
    max-height: 120px;
    height: 90px;
}

.btn-p-25 { padding: 0.7rem !important;  }

.input-error { border: 1px solid #ff4d4d !important; }

.error-text {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
}

.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog { transform: scale(1); }


 /* Success Modal Popup */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-modal-title {
    font-family: 'Unbounded';
    font-weight: 600;
    font-size: 1.5rem;
    color: #d0b6a0;
    margin-bottom: 1rem;
}

.success-modal-message {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background: rgba(11, 19, 28, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    border-radius: 20px;
    padding: 2rem;
    max-width: 350px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-modal.show .custom-modal-content { transform: scale(1); }
        

/* Footer */
footer.footer {
    text-align: center;
    padding: 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, backdrop-filter;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
}

/* Adaptive */
@media (min-resolution: 200dpi) {
    .preview { margin-top: 50px; }
}

@media (min-height: 900px) and (max-width: 430px) {
    .main h3 { height: 2.6em; }
}

@media (max-width: 768px) {
    .preview { margin-top: 100px; }

    .main h3 {     
        white-space: normal;
        font-size: 1.1rem;
     }

    .content-container { margin-top: 60px; }
    
    .content { gap: 1.5rem; }

    .modal-dialog {
        max-width: 95% !important;
        margin: 5px auto;
    }

    .modal-content {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .success-modal-content { padding: 2rem; }
            
    .success-modal-icon { font-size: 3rem; }
    
    .custom-modal-title { font-size: 1.7rem; }
    
    .custom-modal-message { font-size: 1rem; }
}

@media (max-width: 480px) {
    .preview { margin-top: 50px; }

    .modal-title { font-size: 1.1rem; }

    .form-control { font-size: 0.85rem; }

    .success-modal-content { padding: 1.5rem; }
            
    .success-modal-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .success-modal-title {  font-size: 1.4rem; }
    
    .success-modal-message {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .success-modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    footer.footer {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .footer-content {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .modal-content {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .modal-header {  padding: 0.5rem;}

    .modal-title { font-size: 1rem; }

    .form-control {  font-size: 0.8rem;  padding: 0.4rem; }
}
