7575
7676input {
7777 width : 90% ;
78- margin-left : 12px ;
78+ /* margin-left: 12px; */
7979 outline : none;
8080 border : none;
8181 font-size : 20px ;
@@ -684,28 +684,6 @@ width: 40px;
684684 filter : brightness (1.2 );
685685}
686686
687- /* Feedback section */
688- .feedback {
689- display : flex;
690- flex-direction : row;
691- justify-content : space-around;
692- }
693-
694- .feedback img {
695- margin-left : 8rem ;
696- align-items : center;
697- width : 40rem ;
698- }
699-
700- # feedback-section {
701- background-color : # f9f9f9 ;
702- padding : 1.5rem ;
703- margin : 2rem auto;
704- width : 30% ;
705- border : 1px solid # ddd ;
706- border-radius : 20px ;
707- box-shadow : 5px 5px 4px rgba (0 , 0 , 0 , 0.2 );
708- }
709687
710688# feedback-section .dark-mode {
711689 background-color : # 1c1c1c ;
@@ -727,35 +705,110 @@ width: 40px;
727705# feedback-section .dark-mode h2 {
728706 color : # ffffff ;
729707}
708+ .feedback {
709+ display : grid;
710+ grid-template-columns : 1fr ;
711+ grid-template-rows : auto auto;
712+ gap : 20px ;
713+ }
730714
731- .feedback-form {
732- display : flex;
733- flex-direction : column;
734- gap : 1rem ;
715+ # feedback-section {
716+ background-color : # f9f9f9 ;
717+ padding : 1.5rem ;
718+ margin : 2rem auto;
719+ height : 60% ;
720+ margin-top : 150px ;
721+ width : 60% ;
722+ border : 1px solid # ddd ;
723+ border-radius : 20px ;
724+ box-shadow : 5px 5px 4px rgba (0 , 0 , 0 , 0.2 );
735725}
736726
737- .feedback-form .form-group {
738- display : flex;
739- flex-direction : column;
727+ @media (min-width : 768px ) {
728+ .feedback {
729+ grid-template-columns : repeat (2 , 1fr );
730+ grid-template-rows : auto;
731+ }
740732}
741733
742- .feedback-form label {
743- font-size : 16px ;
744- margin-bottom : 0.5rem ;
734+ @media (max-width : 767px ) {
735+ # feedback-section {
736+ width : auto;
737+ height : 100% ;
738+ margin : 0px 10px ;
739+ }
745740}
746741
747- .feedback-form .dark-mode label {
748- color : white;
742+ # feedback-image {
743+ text-align : center;
744+ }
745+
746+ # feedback-image img {
747+ max-width : 70% ;
748+ /* height: auto; */
749+ }
750+
751+ # feedback-section {
752+ padding : 20px ;
753+ }
754+
755+ .feedback-form {
756+ display : grid;
757+ grid-template-columns : 1fr ;
758+ gap : 10px ;
759+ }
760+
761+ .feedback-form label {
762+ font-weight : bold;
749763}
750764
751765.feedback-form input ,
752766.feedback-form textarea {
753- padding : 0.5 rem ;
754- font-size : 14 px ;
767+ width : 98 % ;
768+ padding : 8 px ;
755769 border : 1px solid # ccc ;
756770 border-radius : 5px ;
757771}
758772
773+ .rating {
774+ display : flex;
775+ justify-content : flex-start;
776+ gap : 5px ;
777+ }
778+
779+ .rating input [type = "radio" ] {
780+ display : none;
781+ }
782+
783+ .rating label {
784+ font-size : 2em ;
785+ cursor : pointer;
786+ }
787+
788+ .rating input [type = "radio" ]: checked + label {
789+ color : orange;
790+ }
791+
792+ button [type = "submit" ] {
793+ width : 100% ;
794+ padding : 10px ;
795+ background-color : # 007bff ;
796+ color : white;
797+ border : none;
798+ border-radius : 5px ;
799+ cursor : pointer;
800+ }
801+
802+ button [type = "submit" ]: hover {
803+ background-color : # 0056b3 ;
804+ }
805+
806+ # message ,
807+ # error-message {
808+ margin-top : 20px ;
809+ font-size : 1.2em ;
810+ }
811+
759812.feedback-form input .dark-mode ,
760813.feedback-form textarea .dark-mode {
761814 background-color : # 333333 ;
0 commit comments